pub struct EmbeddedIoAsyncReader<R: Read> { /* private fields */ }Expand description
Adapter for embedded_io_async::Read that produces AsyncRead.
Implementations§
Source§impl<R: Read> EmbeddedIoAsyncReader<R>
impl<R: Read> EmbeddedIoAsyncReader<R>
Sourcepub fn new(reader: R) -> Self
pub fn new(reader: R) -> Self
Wraps an instance of embedded_io_async::Read.
Sourcepub fn extract(self) -> R
pub fn extract(self) -> R
Extracts an instance of embedded_io_async::Read.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for EmbeddedIoAsyncReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for EmbeddedIoAsyncReader<R>where
R: RefUnwindSafe,
impl<R> Send for EmbeddedIoAsyncReader<R>where
R: Send,
impl<R> Sync for EmbeddedIoAsyncReader<R>where
R: Sync,
impl<R> Unpin for EmbeddedIoAsyncReader<R>where
R: Unpin,
impl<R> UnwindSafe for EmbeddedIoAsyncReader<R>where
R: 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