Struct tokio::net::tcp::WriteHalf [−][src]
pub struct WriteHalf<'a>(_);
Expand description
Write half of a TcpStream
.
Note that in the AsyncWrite
implemenation of TcpStreamWriteHalf
,
poll_shutdown
actually shuts down the TCP stream in the write direction.
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]
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
[src]Attempt to write bytes from buf
into the object. Read more
fn poll_write_buf<B: Buf>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>>
[src]
fn poll_write_buf<B: Buf>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>>
[src]Writes a Buf
into this value, returning how many bytes were written. Read more