pub struct TxMetadata {
pub id: TxId,
pub segment_count: u8,
pub flags: TxFlags,
pub len: u32,
pub l2_len: u8,
pub l3_len: u16,
pub l4_len: u8,
pub max_tcp_segment_size: u16,
}Expand description
Transmit packet metadata.
Fields§
§id: TxIdThe transmit ID.
segment_count: u8The number of segments, including this one.
flags: TxFlagsFlags.
len: u32The total length of the packet in bytes.
l2_len: u8The length of the Ethernet frame header. Only guaranteed to be set if various offload flags are set.
l3_len: u16The length of the IP header. Only guaranteed to be set if various offload flags are set.
l4_len: u8The length of the TCP header. Only guaranteed to be set if various offload flags are set.
max_tcp_segment_size: u16The maximum TCP segment size, used for segmentation. Only guaranteed to
be set if TxFlags::offload_tcp_segmentation is set.
Trait Implementations§
Source§impl Clone for TxMetadata
impl Clone for TxMetadata
Source§fn clone(&self) -> TxMetadata
fn clone(&self) -> TxMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TxMetadata
impl Debug for TxMetadata
Auto Trait Implementations§
impl Freeze for TxMetadata
impl RefUnwindSafe for TxMetadata
impl Send for TxMetadata
impl Sync for TxMetadata
impl Unpin for TxMetadata
impl UnwindSafe for TxMetadata
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