Struct bpf_sys::bpf_insn [−][src]
#[repr(C)]pub struct bpf_insn { pub code: __u8, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>, pub off: __s16, pub imm: __s32, }
Fields
code: __u8
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
off: __s16
imm: __s32
Methods
impl bpf_insn
[src]
impl bpf_insn
pub fn dst_reg(&self) -> __u8
[src]
pub fn dst_reg(&self) -> __u8
pub fn set_dst_reg(&mut self, val: __u8)
[src]
pub fn set_dst_reg(&mut self, val: __u8)
pub fn src_reg(&self) -> __u8
[src]
pub fn src_reg(&self) -> __u8
pub fn set_src_reg(&mut self, val: __u8)
[src]
pub fn set_src_reg(&mut self, val: __u8)
pub fn new_bitfield_1(
dst_reg: __u8,
src_reg: __u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
pub fn new_bitfield_1(
dst_reg: __u8,
src_reg: __u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations
impl Debug for bpf_insn
[src]
impl Debug for bpf_insn
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for bpf_insn
[src]
impl Copy for bpf_insn
impl Clone for bpf_insn
[src]
impl Clone for bpf_insn
fn clone(&self) -> bpf_insn
[src]
fn clone(&self) -> bpf_insn
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Pod for bpf_insn
[src]
impl Pod for bpf_insn