pub enum XdpAttachType {
Interface,
CpuMap,
DevMap,
}Expand description
Defines where to attach an XDP program.
Variants§
Interface
Attach to a network interface.
CpuMap
Attach to a cpumap. Requires kernel 5.9 or later.
DevMap
Attach to a devmap. Requires kernel 5.8 or later.
Trait Implementations§
source§impl Clone for XdpAttachType
impl Clone for XdpAttachType
source§fn clone(&self) -> XdpAttachType
fn clone(&self) -> XdpAttachType
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 XdpAttachType
impl Debug for XdpAttachType
source§impl From<XdpAttachType> for bpf_attach_type
impl From<XdpAttachType> for bpf_attach_type
source§fn from(value: XdpAttachType) -> Self
fn from(value: XdpAttachType) -> Self
Converts to this type from the input type.
impl Copy for XdpAttachType
Auto Trait Implementations§
impl Freeze for XdpAttachType
impl RefUnwindSafe for XdpAttachType
impl Send for XdpAttachType
impl Sync for XdpAttachType
impl Unpin for XdpAttachType
impl UnwindSafe for XdpAttachType
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)