#[repr(u32)]pub enum bpf_op_type {
BPF_OP_INVALID = 0,
BPF_OP_REG = 1,
BPF_OP_IMM = 2,
BPF_OP_OFF = 3,
BPF_OP_MEM = 4,
BPF_OP_MMEM = 5,
BPF_OP_MSH = 6,
BPF_OP_EXT = 7,
}
Expand description
Operand type for instruction’s operands
Variants§
BPF_OP_INVALID = 0
BPF_OP_REG = 1
BPF_OP_IMM = 2
BPF_OP_OFF = 3
BPF_OP_MEM = 4
BPF_OP_MMEM = 5
< M[k] in cBPF
BPF_OP_MSH = 6
< corresponds to cBPF’s BPF_MSH mode
BPF_OP_EXT = 7
< cBPF’s extension (not eBPF)
Trait Implementations§
Source§impl Clone for bpf_op_type
impl Clone for bpf_op_type
Source§fn clone(&self) -> bpf_op_type
fn clone(&self) -> bpf_op_type
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 bpf_op_type
impl Debug for bpf_op_type
Source§impl Hash for bpf_op_type
impl Hash for bpf_op_type
Source§impl PartialEq for bpf_op_type
impl PartialEq for bpf_op_type
impl Copy for bpf_op_type
impl Eq for bpf_op_type
impl StructuralPartialEq for bpf_op_type
Auto Trait Implementations§
impl Freeze for bpf_op_type
impl RefUnwindSafe for bpf_op_type
impl Send for bpf_op_type
impl Sync for bpf_op_type
impl Unpin for bpf_op_type
impl UnwindSafe for bpf_op_type
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