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: SocketAddrThe socket this datagram should be sent to
ecn: Option<EcnCodepoint>Explicit congestion notification bits to set on the packet
contents: BContents 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> Freeze for Transmit<B>where
B: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more