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: 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