Struct tokio::net::tcp::WriteHalf   [−][src]
pub struct WriteHalf<'a>(_);
Borrowed write half of a TcpStream, created by split.
Note that in the AsyncWrite implemenation of this type, poll_shutdown will
shut down the TCP stream in the write direction.
Writing to an WriteHalf is usually done using the convenience methods found
on the AsyncWriteExt trait. Examples import this trait through the prelude.
Trait Implementations
impl AsyncWrite for WriteHalf<'_>[src]
impl AsyncWrite for WriteHalf<'_>[src]fn poll_write(
    self: Pin<&mut Self>, 
    cx: &mut Context<'_>, 
    buf: &[u8]
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write_buf<B: Buf>(
    self: Pin<&mut Self>, 
    cx: &mut Context<'_>, 
    buf: &mut B
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>>