Struct tokio::net::unix::OwnedReadHalf [−][src]
pub struct OwnedReadHalf { /* fields omitted */ }
This is supported on crate feature
net
only.Expand description
Owned read half of a UnixStream
, created by into_split
.
Reading from an OwnedReadHalf
is usually done using the convenience methods found
on the AsyncReadExt
trait.
Implementations
impl OwnedReadHalf
[src]
impl OwnedReadHalf
[src]pub fn reunite(self, other: OwnedWriteHalf) -> Result<UnixStream, ReuniteError>
[src]
pub fn reunite(self, other: OwnedWriteHalf) -> 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 OwnedReadHalf
[src]
impl AsRef<UnixStream> for OwnedReadHalf
[src]fn as_ref(&self) -> &UnixStream
[src]
fn as_ref(&self) -> &UnixStream
[src]Performs the conversion.
impl AsyncRead for OwnedReadHalf
[src]
impl AsyncRead for OwnedReadHalf
[src]