Struct tokio::net::unix::datagram::OwnedSendHalf[][src]

pub struct OwnedSendHalf { /* fields omitted */ }

Owned send half of a UnixDatagram, created by into_split.

Implementations

impl OwnedSendHalf[src]

pub fn reunite(self, other: OwnedRecvHalf) -> Result<UnixDatagram, ReuniteError>[src]

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.

pub async fn send_to<P>(&mut self, buf: &[u8], target: P) -> Result<usize> where
    P: AsRef<Path> + Unpin
[src]

Sends data on the socket to the specified address.

pub async fn send(&mut self, buf: &[u8]) -> Result<usize>[src]

Sends data on the socket to the socket’s peer.

pub fn forget(self)[src]

Destroy the send half, but don’t close the send half of the stream until the receive half is dropped. If the read half has already been dropped, this closes the stream.

Trait Implementations

impl AsRef<UnixDatagram> for OwnedSendHalf[src]

impl Debug for OwnedSendHalf[src]

impl Drop for OwnedSendHalf[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.