nbpf_rule_core_fields_t

Struct nbpf_rule_core_fields_t 

Source
#[repr(C, packed(1))]
pub struct nbpf_rule_core_fields_t {
Show 20 fields pub not_rule: c_uchar, pub smac: [c_uchar; 6], pub dmac: [c_uchar; 6], pub proto: c_uchar, pub ip_version: c_uchar, pub gtp: c_uchar, pub vlan: c_uchar, pub mpls: c_uchar, pub vlan_id: c_ushort, pub l7_proto: c_ushort, pub mpls_label: c_ushort, pub shost: nbpf_ip_addr, pub dhost: nbpf_ip_addr, pub shost_mask: nbpf_ip_addr, pub dhost_mask: nbpf_ip_addr, pub sport_low: c_ushort, pub sport_high: c_ushort, pub dport_low: c_ushort, pub dport_high: c_ushort, pub byte_match: *mut nbpf_rule_core_fields_byte_match_t,
}

Fields§

§not_rule: c_uchar§smac: [c_uchar; 6]§dmac: [c_uchar; 6]§proto: c_uchar§ip_version: c_uchar§gtp: c_uchar§vlan: c_uchar§mpls: c_uchar§vlan_id: c_ushort§l7_proto: c_ushort§mpls_label: c_ushort§shost: nbpf_ip_addr§dhost: nbpf_ip_addr§shost_mask: nbpf_ip_addr§dhost_mask: nbpf_ip_addr§sport_low: c_ushort§sport_high: c_ushort§dport_low: c_ushort§dport_high: c_ushort§byte_match: *mut nbpf_rule_core_fields_byte_match_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.