#[repr(C)]pub struct bpf_insn {
pub code: __u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub off: __s16,
pub imm: __s32,
}
Fields§
§code: __u8
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§off: __s16
§imm: __s32
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 Self) -> __u8
pub unsafe fn set_dst_reg_raw(this: *mut Self, 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 Self) -> __u8
pub unsafe fn set_src_reg_raw(this: *mut Self, val: __u8)
pub fn new_bitfield_1( dst_reg: __u8, src_reg: __u8, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
impl Copy for bpf_insn
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