#[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§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 Freeze for XdpAttached
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)