pub struct FuturesWriter<W: AsyncWrite> { /* private fields */ }Expand description
Adapter for futures::io::AsyncWrite that produces AsyncWrite.
Implementations§
Source§impl<W: AsyncWrite> FuturesWriter<W>
impl<W: AsyncWrite> FuturesWriter<W>
Sourcepub fn new(writer: W) -> Self
pub fn new(writer: W) -> Self
Wraps an instance of futures::io::AsyncWrite.
Sourcepub fn extract(self) -> W
pub fn extract(self) -> W
Extracts an instance of futures::io::AsyncWrite.
Trait Implementations§
Source§impl<W: AsyncWrite + Unpin> AsyncWrite<Error> for FuturesWriter<W>
impl<W: AsyncWrite + Unpin> AsyncWrite<Error> for FuturesWriter<W>
Auto Trait Implementations§
impl<W> Freeze for FuturesWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for FuturesWriter<W>where
W: RefUnwindSafe,
impl<W> Send for FuturesWriter<W>where
W: Send,
impl<W> Sync for FuturesWriter<W>where
W: Sync,
impl<W> Unpin for FuturesWriter<W>where
W: Unpin,
impl<W> UnwindSafe for FuturesWriter<W>where
W: 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