#[repr(C)]pub struct Insn {
pub code: u16,
pub jt: u8,
pub jf: u8,
pub k: u32,
}Expand description
One struct sock_filter instruction.
Fields§
§code: u16The opcode (BPF_LD | BPF_W | BPF_ABS and so on).
jt: u8Instructions to skip when a conditional jump is taken.
jf: u8Instructions to skip when a conditional jump is not taken.
k: u32The constant operand: an offset, a value to compare, or a return value.
Trait Implementations§
impl Copy for Insn
impl Eq for Insn
impl StructuralPartialEq for Insn
Auto Trait Implementations§
impl Freeze for Insn
impl RefUnwindSafe for Insn
impl Send for Insn
impl Sync for Insn
impl Unpin for Insn
impl UnsafeUnpin for Insn
impl UnwindSafe for Insn
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