Struct tokio::net::unix::datagram::OwnedSendHalf [−][src]
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]
P: AsRef<Path> + Unpin,
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]
fn as_ref(&self) -> &UnixDatagram
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,