pub struct OwnedRecvHalf { /* private fields */ }
Expand description
Owned receive half of a UnixDatagram
, created by into_split
.
Implementations
sourceimpl OwnedRecvHalf
impl OwnedRecvHalf
sourcepub fn reunite(self, other: OwnedSendHalf) -> Result<UnixDatagram, ReuniteError>
pub fn reunite(self, other: OwnedSendHalf) -> Result<UnixDatagram, ReuniteError>
Attempts to put the two “halves” of a UnixDatagram
back together and
recover the original socket. Succeeds only if the two “halves”
originated from the same call to into_split
.
Trait Implementations
sourceimpl AsRef<UnixDatagram> for OwnedRecvHalf
impl AsRef<UnixDatagram> for OwnedRecvHalf
sourcefn as_ref(&self) -> &UnixDatagram
fn as_ref(&self) -> &UnixDatagram
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for OwnedRecvHalf
impl Send for OwnedRecvHalf
impl Sync for OwnedRecvHalf
impl Unpin for OwnedRecvHalf
impl !UnwindSafe for OwnedRecvHalf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more