pub struct OwnedSendHalf { /* private fields */ }
Expand description
Owned send half of a UnixDatagram
, created by into_split
.
Implementations
sourceimpl OwnedSendHalf
impl OwnedSendHalf
sourcepub fn reunite(self, other: OwnedRecvHalf) -> Result<UnixDatagram, ReuniteError>
pub fn reunite(self, other: OwnedRecvHalf) -> 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
.
sourcepub async fn send_to<P>(&mut self, buf: &[u8], target: P) -> Result<usize> where
P: AsRef<Path> + Unpin,
pub async fn send_to<P>(&mut self, buf: &[u8], target: P) -> Result<usize> where
P: AsRef<Path> + Unpin,
Sends data on the socket to the specified address.
Trait Implementations
sourceimpl AsRef<UnixDatagram> for OwnedSendHalf
impl AsRef<UnixDatagram> for OwnedSendHalf
sourcefn as_ref(&self) -> &UnixDatagram
fn as_ref(&self) -> &UnixDatagram
Performs the conversion.
sourceimpl Debug for OwnedSendHalf
impl Debug for OwnedSendHalf
Auto Trait Implementations
impl !RefUnwindSafe for OwnedSendHalf
impl Send for OwnedSendHalf
impl Sync for OwnedSendHalf
impl Unpin for OwnedSendHalf
impl !UnwindSafe for OwnedSendHalf
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