Struct embedded_io::adapters::FromFutures
source · pub struct FromFutures<T: ?Sized> { /* private fields */ }
Available on crate feature
futures
only.Expand description
Adapter from futures::io
traits.
Implementations§
source§impl<T> FromFutures<T>
impl<T> FromFutures<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: ?Sized> Io for FromFutures<T>
impl<T: ?Sized> Io for FromFutures<T>
source§impl<T: AsyncRead + Unpin + ?Sized> Read for FromFutures<T>
impl<T: AsyncRead + Unpin + ?Sized> Read for FromFutures<T>
source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Available on crate feature
async
only.Pull some bytes from this source into the specified buffer, returning how many bytes were read.
source§async fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>>
Available on crate feature
async
only.Read the exact number of bytes required to fill
buf
.source§impl<T: AsyncSeek + Unpin + ?Sized> Seek for FromFutures<T>
impl<T: AsyncSeek + Unpin + ?Sized> Seek for FromFutures<T>
source§impl<T: AsyncWrite + Unpin + ?Sized> Write for FromFutures<T>
impl<T: AsyncWrite + Unpin + ?Sized> Write for FromFutures<T>
source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Available on crate feature
async
only.Write a buffer into this writer, returning how many bytes were written.