nbpf_node_t

Struct nbpf_node_t 

Source
#[repr(C, packed(1))]
pub struct nbpf_node_t {
Show 25 fields pub type_: c_int, pub level: c_int, pub qualifiers: nbpf_qualifiers_t, pub not_rule: c_uchar, pub device_id: c_ushort, pub interface_id: c_ushort, pub vlan_id_defined: c_uchar, pub mpls_label_defined: c_uchar, pub __padding: c_uchar, pub vlan_id: c_ushort, pub mpls_label: c_ushort, pub mac: [c_uchar; 6], pub ip6: [c_uchar; 16], pub mask6: [c_uchar; 16], pub ip: c_uint, pub mask: c_uint, pub port_from: c_ushort, pub port_to: c_ushort, pub protocol: c_ushort, pub l7protocol: c_ushort, pub byte_match: nbpf_byte_match_t, pub custom_key: *mut c_char, pub custom_value: *mut c_char, pub l: *mut nbpf_node_t, pub r: *mut nbpf_node_t,
}

Fields§

§type_: c_int§level: c_int§qualifiers: nbpf_qualifiers_t§not_rule: c_uchar§device_id: c_ushort§interface_id: c_ushort§vlan_id_defined: c_uchar§mpls_label_defined: c_uchar§__padding: c_uchar§vlan_id: c_ushort§mpls_label: c_ushort§mac: [c_uchar; 6]§ip6: [c_uchar; 16]§mask6: [c_uchar; 16]§ip: c_uint§mask: c_uint§port_from: c_ushort§port_to: c_ushort§protocol: c_ushort§l7protocol: c_ushort§byte_match: nbpf_byte_match_t§custom_key: *mut c_char§custom_value: *mut c_char§l: *mut nbpf_node_t§r: *mut nbpf_node_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.