pub struct BpfInstruction {
pub code: u16,
pub jt: u8,
pub jf: u8,
pub k: u32,
}Expand description
A single BPF instruction.
Fields§
§code: u16Opcode.
jt: u8Jump target if condition is true.
jf: u8Jump target if condition is false.
k: u32Immediate value.
Implementations§
Trait Implementations§
Source§impl Clone for BpfInstruction
impl Clone for BpfInstruction
Source§fn clone(&self) -> BpfInstruction
fn clone(&self) -> BpfInstruction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BpfInstruction
impl Debug for BpfInstruction
Source§impl PartialEq for BpfInstruction
impl PartialEq for BpfInstruction
impl Copy for BpfInstruction
impl Eq for BpfInstruction
impl StructuralPartialEq for BpfInstruction
Auto Trait Implementations§
impl Freeze for BpfInstruction
impl RefUnwindSafe for BpfInstruction
impl Send for BpfInstruction
impl Sync for BpfInstruction
impl Unpin for BpfInstruction
impl UnwindSafe for BpfInstruction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)