Struct seccompiler::sock_filter
source · [−]#[repr(C)]pub struct sock_filter {
pub code: c_ushort,
pub jt: c_uchar,
pub jf: c_uchar,
pub k: c_uint,
}
Expand description
BPF instruction structure definition.
Fields
code: c_ushort
Code of the instruction.
jt: c_uchar
Jump if true offset.
jf: c_uchar
Jump if false offset.
k: c_uint
Immediate value.
Trait Implementations
sourceimpl Clone for sock_filter
impl Clone for sock_filter
sourcefn clone(&self) -> sock_filter
fn clone(&self) -> sock_filter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for sock_filter
impl Debug for sock_filter
sourceimpl PartialEq<sock_filter> for sock_filter
impl PartialEq<sock_filter> for sock_filter
sourcefn eq(&self, other: &sock_filter) -> bool
fn eq(&self, other: &sock_filter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for sock_filter
impl StructuralEq for sock_filter
impl StructuralPartialEq for sock_filter
Auto Trait Implementations
impl RefUnwindSafe for sock_filter
impl Send for sock_filter
impl Sync for sock_filter
impl Unpin for sock_filter
impl UnwindSafe for sock_filter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more