Struct tokio::net::unix::WriteHalf [−][src]
pub struct WriteHalf<'a>(_);
This is supported on crate feature
net
only.Expand description
Borrowed write half of a UnixStream
, created by split
.
Note that in the AsyncWrite
implemenation of this type, poll_shutdown
will
shut down the UnixStream stream in the write direction.
Writing to an WriteHalf
is usually done using the convenience methods found
on the AsyncWriteExt
trait.
Trait Implementations
impl AsRef<UnixStream> for WriteHalf<'_>
[src]
impl AsRef<UnixStream> for WriteHalf<'_>
[src]fn as_ref(&self) -> &UnixStream
[src]
fn as_ref(&self) -> &UnixStream
[src]Performs the conversion.
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_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]Like poll_write
, except that it writes from a slice of buffers. Read more
fn is_write_vectored(&self) -> bool
[src]
fn is_write_vectored(&self) -> bool
[src]Determines if this writer has an efficient poll_write_vectored
implementation. Read more