pub struct RxMetadata {
pub offset: usize,
pub len: usize,
pub ip_checksum: RxChecksumState,
pub l4_checksum: RxChecksumState,
pub l4_protocol: L4Protocol,
}
Expand description
Receive packet metadata.
Fields§
§offset: usize
The offset of the packet data from the beginning of the receive buffer.
len: usize
The length of the packet in bytes.
ip_checksum: RxChecksumState
The IP checksum validation state.
l4_checksum: RxChecksumState
The L4 checksum validation state.
l4_protocol: L4Protocol
The L4 protocol.
Trait Implementations§
Source§impl Clone for RxMetadata
impl Clone for RxMetadata
Source§fn clone(&self) -> RxMetadata
fn clone(&self) -> RxMetadata
Returns a copy 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 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