#[repr(C)]pub struct bpf_insn {
pub code: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub off: i16,
pub imm: i32,
}
Fields§
§code: u8
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§off: i16
§imm: i32
Implementations§
Source§impl bpf_insn
impl bpf_insn
pub fn dst_reg(&self) -> u8
pub fn set_dst_reg(&mut self, val: u8)
pub unsafe fn dst_reg_raw(this: *const bpf_insn) -> u8
pub unsafe fn set_dst_reg_raw(this: *mut bpf_insn, val: u8)
pub fn src_reg(&self) -> u8
pub fn set_src_reg(&mut self, val: u8)
pub unsafe fn src_reg_raw(this: *const bpf_insn) -> u8
pub unsafe fn set_src_reg_raw(this: *mut bpf_insn, val: u8)
pub fn new_bitfield_1( dst_reg: u8, src_reg: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for bpf_insn
impl RefUnwindSafe for bpf_insn
impl Send for bpf_insn
impl Sync for bpf_insn
impl Unpin for bpf_insn
impl UnwindSafe for bpf_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