Struct tokio::net::tcp::WriteHalf [−][src]
pub struct WriteHalf<'a>(_);
Borrowed write half of a TcpStream
, created by split
.
Note that in the AsyncWrite
implementation 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.
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_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>