Struct tokio::net::unix::OwnedWriteHalf [−][src]
pub struct OwnedWriteHalf { /* fields omitted */ }
net
only.Expand description
Owned write half of a UnixStream
, created by into_split
.
Note that in the AsyncWrite
implementation of this type,
poll_shutdown
will shut down the stream in the write direction.
Dropping the write half will also shut down the write half of the stream.
Writing to an OwnedWriteHalf
is usually done using the convenience methods
found on the AsyncWriteExt
trait.
Implementations
impl OwnedWriteHalf
[src]
impl OwnedWriteHalf
[src]pub fn reunite(self, other: OwnedReadHalf) -> Result<UnixStream, ReuniteError>
[src]
pub fn reunite(self, other: OwnedReadHalf) -> Result<UnixStream, ReuniteError>
[src]Attempts to put the two halves of a UnixStream
back together and
recover the original socket. Succeeds only if the two halves
originated from the same call to into_split
.
Trait Implementations
impl AsRef<UnixStream> for OwnedWriteHalf
[src]
impl AsRef<UnixStream> for OwnedWriteHalf
[src]fn as_ref(&self) -> &UnixStream
[src]
fn as_ref(&self) -> &UnixStream
[src]Performs the conversion.
impl AsyncWrite for OwnedWriteHalf
[src]
impl AsyncWrite for OwnedWriteHalf
[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
impl Debug for OwnedWriteHalf
[src]
impl Debug for OwnedWriteHalf
[src]