pub enum Dev<'a> {
Ifindex(u32),
Pad(&'a [u8]),
XdpFeatures(u64),
XdpZcMaxSegs(u32),
XdpRxMetadataFeatures(u64),
XskFeatures(u64),
}Available on crate feature
netdev only.Variants§
Ifindex(u32)
netdev ifindex
Pad(&'a [u8])
XdpFeatures(u64)
Bitmask of enabled xdp-features.
Associated type: XdpAct (enum)
XdpZcMaxSegs(u32)
max fragment count supported by ZC driver
XdpRxMetadataFeatures(u64)
Bitmask of supported XDP receive metadata features. See Documentation/networking/xdp-rx-metadata.rst for more details.
Associated type: XdpRxMetadata (enum)
XskFeatures(u64)
Bitmask of enabled AF_XDP features.
Associated type: XskFlags (enum)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Dev<'a>
impl<'a> RefUnwindSafe for Dev<'a>
impl<'a> Send for Dev<'a>
impl<'a> Sync for Dev<'a>
impl<'a> Unpin for Dev<'a>
impl<'a> UnsafeUnpin for Dev<'a>
impl<'a> UnwindSafe for Dev<'a>
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