pub struct BpfEventType(pub u16);Expand description
Indicates the type of a BpfEvent
Tuple Fields§
§0: u16Implementations§
Source§impl BpfEventType
impl BpfEventType
Sourcepub const UNKNOWN: BpfEventType
pub const UNKNOWN: BpfEventType
The event type is unknown.
Sourcepub const PROG_LOAD: BpfEventType
pub const PROG_LOAD: BpfEventType
A BPF program was loaded.
Sourcepub const PROG_UNLOAD: BpfEventType
pub const PROG_UNLOAD: BpfEventType
A BPF program was unloaded.
Source§impl BpfEventType
impl BpfEventType
Sourcepub const fn new(value: u16) -> BpfEventType
pub const fn new(value: u16) -> BpfEventType
Create a new BpfEventType.
Trait Implementations§
Source§impl Clone for BpfEventType
impl Clone for BpfEventType
Source§fn clone(&self) -> BpfEventType
fn clone(&self) -> BpfEventType
Returns a duplicate 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 BpfEventType
impl Debug for BpfEventType
Source§impl From<u16> for BpfEventType
impl From<u16> for BpfEventType
Source§fn from(value: u16) -> BpfEventType
fn from(value: u16) -> BpfEventType
Converts to this type from the input type.
Source§impl Hash for BpfEventType
impl Hash for BpfEventType
Source§impl<'p> Parse<'p> for BpfEventType
impl<'p> Parse<'p> for BpfEventType
Source§fn parse<B, E>(p: &mut Parser<B, E>) -> Result<BpfEventType, ParseError>
fn parse<B, E>(p: &mut Parser<B, E>) -> Result<BpfEventType, ParseError>
Parse
Self using the provided Parser instance.Source§impl PartialEq for BpfEventType
impl PartialEq for BpfEventType
impl Copy for BpfEventType
impl Eq for BpfEventType
impl StructuralPartialEq for BpfEventType
Auto Trait Implementations§
impl Freeze for BpfEventType
impl RefUnwindSafe for BpfEventType
impl Send for BpfEventType
impl Sync for BpfEventType
impl Unpin for BpfEventType
impl UnwindSafe for BpfEventType
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