pub struct WriteHalf { /* private fields */ }Available on crate feature
async-futures only.Expand description
Write half of asynchronous mock IO stream
Trait Implementations§
Source§impl AsyncWrite for WriteHalf
impl AsyncWrite for WriteHalf
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf into the object. Read moreSource§fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Auto Trait Implementations§
impl Freeze for WriteHalf
impl RefUnwindSafe for WriteHalf
impl Send for WriteHalf
impl Sync for WriteHalf
impl Unpin for WriteHalf
impl UnwindSafe for WriteHalf
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