Enum netlink_packet_route::link::XdpAttached
source · #[non_exhaustive]pub enum XdpAttached {
None,
Driver,
SocketBuffer,
Hardware,
Multiple,
Other(u8),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
XDP_ATTACHED_NONE
Driver
XDP_ATTACHED_DRV
SocketBuffer
XDP_ATTACHED_SKB
Hardware
XDP_ATTACHED_HW
Multiple
XDP_ATTACHED_MULTI
Other(u8)
This crate is unaware of the attachment type the kernel is reporting
Trait Implementations§
source§impl Clone for XdpAttached
impl Clone for XdpAttached
source§fn clone(&self) -> XdpAttached
fn clone(&self) -> XdpAttached
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 XdpAttached
impl Debug for XdpAttached
source§impl PartialEq for XdpAttached
impl PartialEq for XdpAttached
source§fn eq(&self, other: &XdpAttached) -> bool
fn eq(&self, other: &XdpAttached) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for XdpAttached
impl TryFrom<u8> for XdpAttached
impl Copy for XdpAttached
impl Eq for XdpAttached
impl StructuralPartialEq for XdpAttached
Auto Trait Implementations§
impl RefUnwindSafe for XdpAttached
impl Send for XdpAttached
impl Sync for XdpAttached
impl Unpin for XdpAttached
impl UnwindSafe for XdpAttached
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