Struct embedded_io_adapters::std::FromStd
source · pub struct FromStd<T: ?Sized> { /* private fields */ }
Available on crate feature
std
only.Expand description
Adapter from std::io
traits.
Implementations§
source§impl<T> FromStd<T>
impl<T> FromStd<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the adapter, returning the inner object.
Trait Implementations§
source§impl<T: BufRead + ?Sized> BufRead for FromStd<T>
impl<T: BufRead + ?Sized> BufRead for FromStd<T>
source§impl<T: Read + ?Sized> Read for FromStd<T>
impl<T: Read + ?Sized> Read for FromStd<T>
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
source§fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8] ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moresource§impl<T: Seek + ?Sized> Seek for FromStd<T>
impl<T: Seek + ?Sized> Seek for FromStd<T>
source§impl<T: Write + ?Sized> Write for FromStd<T>
impl<T: Write + ?Sized> Write for FromStd<T>
source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for FromStd<T>where T: RefUnwindSafe,
impl<T: ?Sized> Send for FromStd<T>where T: Send,
impl<T: ?Sized> Sync for FromStd<T>where T: Sync,
impl<T: ?Sized> Unpin for FromStd<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for FromStd<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more