#[repr(u8)]
pub enum JmpOp {
Show 14 variants
JA,
JEQ,
JGT,
JGE,
JSET,
JNE,
JSGT,
JSGE,
CALL,
EXIT,
JLT,
JLE,
JSLT,
JSLE,
}
Expand description
Variants
JA
Only allowed with the BPF_JMP instruction class
JEQ
JGT
JGE
JSET
JNE
JSGT
JSGE
CALL
EXIT
JLT
Part of ISA v2
JLE
Part of ISA v2
JSLT
Part of ISA v2
JSLE
Part of ISA v2
Trait Implementations
sourceimpl TryFrom<u8> for JmpOp
impl TryFrom<u8> for JmpOp
type Error = TryFromPrimitiveError<JmpOp>
type Error = TryFromPrimitiveError<JmpOp>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for JmpOp
impl TryFromPrimitive for JmpOp
type Primitive = u8
const NAME: &'static str = "JmpOp"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for JmpOp
impl Eq for JmpOp
impl StructuralEq for JmpOp
impl StructuralPartialEq for JmpOp
Auto Trait Implementations
impl RefUnwindSafe for JmpOp
impl Send for JmpOp
impl Sync for JmpOp
impl Unpin for JmpOp
impl UnwindSafe for JmpOp
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more