Struct unix_udp_sock::Transmit
source · [−]pub struct Transmit<B> {
pub dst: SocketAddr,
pub ecn: Option<EcnCodepoint>,
pub contents: B,
pub segment_size: Option<usize>,
pub src: Option<Source>,
}
Expand description
An outgoing packet
Fields
dst: SocketAddr
The socket this datagram should be sent to
ecn: Option<EcnCodepoint>
Explicit congestion notification bits to set on the packet
contents: B
Contents of the datagram
segment_size: Option<usize>
The segment size if this transmission contains multiple datagrams.
This is None
if the transmit only contains a single datagram
src: Option<Source>
Optional source IP address for the datagram
Implementations
Trait Implementations
Auto Trait Implementations
impl<B> RefUnwindSafe for Transmit<B> where
B: RefUnwindSafe,
impl<B> Send for Transmit<B> where
B: Send,
impl<B> Sync for Transmit<B> where
B: Sync,
impl<B> Unpin for Transmit<B> where
B: Unpin,
impl<B> UnwindSafe for Transmit<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more