pub enum AttachType {
Show 59 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,
TraceKprobeMulti,
LsmCgroup,
StructOps,
Netfilter,
TcxIngress,
TcxEgress,
TraceUprobeMulti,
CgroupUnixConnect,
CgroupUnixSendmsg,
CgroupUnixRecvmsg,
CgroupUnixGetpeername,
CgroupUnixGetsockname,
NetkitPrimary,
NetkitPeer,
TraceKprobeSession,
Unspecified,
Invalid(u32),
}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
TraceKprobeMulti
LsmCgroup
StructOps
Netfilter
TcxIngress
TcxEgress
TraceUprobeMulti
CgroupUnixConnect
CgroupUnixSendmsg
CgroupUnixRecvmsg
CgroupUnixGetpeername
CgroupUnixGetsockname
NetkitPrimary
NetkitPeer
TraceKprobeSession
Unspecified
Invalid(u32)
Implementations§
Source§impl AttachType
impl AttachType
pub fn is_cgroup(&self) -> bool
pub fn get_program_type(&self) -> ProgramType
pub fn is_compatible_with_expected_attach_type( self, expected: AttachType, ) -> bool
Trait Implementations§
Source§impl Clone for AttachType
impl Clone for AttachType
Source§fn clone(&self) -> AttachType
fn clone(&self) -> AttachType
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 AttachType
impl Debug for AttachType
Source§impl From<AttachType> for u32
impl From<AttachType> for u32
Source§fn from(attach_type: AttachType) -> Self
fn from(attach_type: AttachType) -> Self
Converts to this type from the input type.
Source§impl From<AttachType> for u64
impl From<AttachType> for u64
Source§fn from(attach_type: AttachType) -> Self
fn from(attach_type: AttachType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for AttachType
impl From<u32> for AttachType
Source§impl PartialEq for AttachType
impl PartialEq for AttachType
impl Copy for AttachType
impl Eq for AttachType
impl StructuralPartialEq for AttachType
Auto Trait Implementations§
impl Freeze for AttachType
impl RefUnwindSafe for AttachType
impl Send for AttachType
impl Sync for AttachType
impl Unpin for AttachType
impl UnwindSafe for AttachType
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more