Struct tokio::net::tcp::WriteHalf [−][src]
pub struct WriteHalf<'a>(_);
Expand description
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
Attempt to write bytes from buf
into the object. Read more
Like poll_write
, except that it writes from a slice of buffers. Read more
Determines if this writer has an efficient poll_write_vectored
implementation. Read more
Attempts to flush the object, ensuring that any buffered data reach their destination. Read more