pub struct RxMetadata {
pub offset: usize,
pub len: usize,
pub ip_checksum: RxChecksumState,
pub l4_checksum: RxChecksumState,
pub l4_protocol: L4Protocol,
pub vlan: Option<VlanMetadata>,
}Expand description
Receive packet metadata.
Fields§
§offset: usizeThe offset of the packet data from the beginning of the receive buffer.
len: usizeThe length of the packet in bytes.
ip_checksum: RxChecksumStateThe IP checksum validation state.
l4_checksum: RxChecksumStateThe L4 checksum validation state.
l4_protocol: L4ProtocolThe L4 protocol.
vlan: Option<VlanMetadata>Information about 802.1Q VLAN tagging. When a vlan is in use, this structure is populated. Only applies when traffic is being received over an L2 connection, so L3-only or above traffic will not use this option.
Trait Implementations§
Source§impl Clone for RxMetadata
impl Clone for RxMetadata
Source§fn clone(&self) -> RxMetadata
fn clone(&self) -> RxMetadata
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 RxMetadata
impl Debug for RxMetadata
Source§impl Default for RxMetadata
impl Default for RxMetadata
impl Copy for RxMetadata
Auto Trait Implementations§
impl Freeze for RxMetadata
impl RefUnwindSafe for RxMetadata
impl Send for RxMetadata
impl Sync for RxMetadata
impl Unpin for RxMetadata
impl UnsafeUnpin for RxMetadata
impl UnwindSafe for RxMetadata
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