pub struct BoxWriter<W, B> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<W, B> AsyncWrite for BoxWriter<W, B>
impl<W, B> AsyncWrite for BoxWriter<W, B>
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
to_write: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, to_write: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf into the object. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Auto Trait Implementations§
impl<W, B> Freeze for BoxWriter<W, B>
impl<W, B> RefUnwindSafe for BoxWriter<W, B>where
W: RefUnwindSafe,
B: RefUnwindSafe,
impl<W, B> Send for BoxWriter<W, B>
impl<W, B> Sync for BoxWriter<W, B>
impl<W, B> Unpin for BoxWriter<W, B>
impl<W, B> UnwindSafe for BoxWriter<W, B>where
W: UnwindSafe,
B: 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