Struct embedded_io::adapters::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: 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>
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
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
.source§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.
source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination.