Enum libbpf_rs::ProgramType
source · [−]#[non_exhaustive]
#[repr(u32)]
pub enum ProgramType {
Show 33 variants
Unspec,
SocketFilter,
Kprobe,
SchedCls,
SchedAct,
Tracepoint,
Xdp,
PerfEvent,
CgroupSkb,
CgroupSock,
LwtIn,
LwtOut,
LwtXmit,
SockOps,
SkSkb,
CgroupDevice,
SkMsg,
RawTracepoint,
CgroupSockAddr,
LwtSeg6local,
LircMode2,
SkReuseport,
FlowDissector,
CgroupSysctl,
RawTracepointWritable,
CgroupSockopt,
Tracing,
StructOps,
Ext,
Lsm,
SkLookup,
Syscall,
Unknown,
}
Expand description
Type of a Program
. Maps to enum bpf_prog_type
in kernel uapi.
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.
Unspec
SocketFilter
Kprobe
SchedCls
SchedAct
Tracepoint
Xdp
PerfEvent
CgroupSkb
CgroupSock
LwtIn
LwtOut
LwtXmit
SockOps
SkSkb
CgroupDevice
SkMsg
RawTracepoint
CgroupSockAddr
LwtSeg6local
LircMode2
SkReuseport
FlowDissector
CgroupSysctl
RawTracepointWritable
CgroupSockopt
Tracing
StructOps
Ext
Lsm
SkLookup
Syscall
Unknown
See MapType::Unknown
Trait Implementations
sourceimpl Clone for ProgramType
impl Clone for ProgramType
sourcefn clone(&self) -> ProgramType
fn clone(&self) -> ProgramType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Display for ProgramType
impl Display for ProgramType
sourceimpl TryFrom<u32> for ProgramType
impl TryFrom<u32> for ProgramType
type Error = TryFromPrimitiveError<ProgramType>
type Error = TryFromPrimitiveError<ProgramType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ProgramType
impl TryFromPrimitive for ProgramType
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for ProgramType
impl Send for ProgramType
impl Sync for ProgramType
impl Unpin for ProgramType
impl UnwindSafe for ProgramType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more