[−][src]Struct tokio::net::unix::datagram::OwnedSendHalf
This is supported on crate feature
uds
only.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]
&'_ mut self,
buf: &'_ [u8],
target: P
) -> Result<usize> where
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]
pub 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
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>,