Enum libbpf_rs::ProgramAttachType
source · [−]#[non_exhaustive]
#[repr(u32)]
pub enum ProgramAttachType {
Show 43 variants
CgroupInetIngress,
CgroupInetEgress,
CgroupInetSockCreate,
CgroupSockOps,
SkSkbStreamParser,
SkSkbStreamVerdict,
CgroupDevice,
SkMsgVerdict,
CgroupInet4Bind,
CgroupInet6Bind,
CgroupInet4Connect,
CgroupInet6Connect,
CgroupInet4PostBind,
CgroupInet6PostBind,
CgroupUdp4Sendmsg,
CgroupUdp6Sendmsg,
LircMode2,
FlowDissector,
CgroupSysctl,
CgroupUdp4Recvmsg,
CgroupUdp6Recvmsg,
CgroupGetsockopt,
CgroupSetsockopt,
TraceRawTp,
TraceFentry,
TraceFexit,
ModifyReturn,
LsmMac,
TraceIter,
CgroupInet4Getpeername,
CgroupInet6Getpeername,
CgroupInet4Getsockname,
CgroupInet6Getsockname,
XdpDevmap,
CgroupInetSockRelease,
XdpCpumap,
SkLookup,
Xdp,
SkSkbVerdict,
SkReuseportSelect,
SkReuseportSelectOrMigrate,
PerfEvent,
Unknown,
}
Expand description
Attach type of a Program
. Maps to enum bpf_attach_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.
CgroupInetIngress
CgroupInetEgress
CgroupInetSockCreate
CgroupSockOps
SkSkbStreamParser
SkSkbStreamVerdict
CgroupDevice
SkMsgVerdict
CgroupInet4Bind
CgroupInet6Bind
CgroupInet4Connect
CgroupInet6Connect
CgroupInet4PostBind
CgroupInet6PostBind
CgroupUdp4Sendmsg
CgroupUdp6Sendmsg
LircMode2
FlowDissector
CgroupSysctl
CgroupUdp4Recvmsg
CgroupUdp6Recvmsg
CgroupGetsockopt
CgroupSetsockopt
TraceRawTp
TraceFentry
TraceFexit
ModifyReturn
LsmMac
TraceIter
CgroupInet4Getpeername
CgroupInet6Getpeername
CgroupInet4Getsockname
CgroupInet6Getsockname
XdpDevmap
CgroupInetSockRelease
XdpCpumap
SkLookup
Xdp
SkSkbVerdict
SkReuseportSelect
SkReuseportSelectOrMigrate
PerfEvent
Unknown
See MapType::Unknown
Trait Implementations
sourceimpl Clone for ProgramAttachType
impl Clone for ProgramAttachType
sourcefn clone(&self) -> ProgramAttachType
fn clone(&self) -> ProgramAttachType
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 ProgramAttachType
impl Display for ProgramAttachType
sourceimpl TryFrom<u32> for ProgramAttachType
impl TryFrom<u32> for ProgramAttachType
type Error = TryFromPrimitiveError<ProgramAttachType>
type Error = TryFromPrimitiveError<ProgramAttachType>
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 ProgramAttachType
impl TryFromPrimitive for ProgramAttachType
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for ProgramAttachType
impl Send for ProgramAttachType
impl Sync for ProgramAttachType
impl Unpin for ProgramAttachType
impl UnwindSafe for ProgramAttachType
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