pub enum XdpRxMetadata {
Timestamp = 1,
Hash = 2,
VlanTag = 4,
}Available on crate feature
netdev only.Expand description
Flags - defines an integer enumeration, with values for each entry occupying a bit, starting from bit 0, (e.g. 1, 2, 4, 8)
Variants§
Timestamp = 1
Device is capable of exposing receive HW timestamp via bpf_xdp_metadata_rx_timestamp().
Hash = 2
Device is capable of exposing receive packet hash via bpf_xdp_metadata_rx_hash().
VlanTag = 4
Device is capable of exposing receive packet VLAN tag via bpf_xdp_metadata_rx_vlan_tag().
Implementations§
Source§impl XdpRxMetadata
impl XdpRxMetadata
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for XdpRxMetadata
impl Clone for XdpRxMetadata
Source§fn clone(&self) -> XdpRxMetadata
fn clone(&self) -> XdpRxMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for XdpRxMetadata
Auto Trait Implementations§
impl Freeze for XdpRxMetadata
impl RefUnwindSafe for XdpRxMetadata
impl Send for XdpRxMetadata
impl Sync for XdpRxMetadata
impl Unpin for XdpRxMetadata
impl UnsafeUnpin for XdpRxMetadata
impl UnwindSafe for XdpRxMetadata
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