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§
source§impl Clone for ProgramAttachType
impl Clone for ProgramAttachType
source§fn clone(&self) -> ProgramAttachType
fn clone(&self) -> ProgramAttachType
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 ProgramAttachType
impl Debug for ProgramAttachType
source§impl Display for ProgramAttachType
impl Display for ProgramAttachType
source§impl 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.