pfioc_table

Struct pfioc_table 

Source
#[repr(C)]
pub struct pfioc_table { pub pfrio_table: pfr_table, pub pfrio_buffer: *mut pfr_addr, pub pfrio_esize: i32, pub pfrio_size: i32, pub pfrio_size2: i32, pub pfrio_nadd: i32, pub pfrio_ndel: i32, pub pfrio_nchange: i32, pub pfrio_flags: i32, pub pfrio_ticket: u32, }

Fields§

§pfrio_table: pfr_table§pfrio_buffer: *mut pfr_addr§pfrio_esize: i32§pfrio_size: i32§pfrio_size2: i32§pfrio_nadd: i32§pfrio_ndel: i32§pfrio_nchange: i32§pfrio_flags: i32§pfrio_ticket: u32

Implementations§

Source§

impl pfioc_table

Source

pub fn init() -> pfioc_table

Creates an empty pfioc_table where every field is null

Trait Implementations§

Source§

impl Translate<pfioc_table> for PfIocTable

Source§

fn translate(&self) -> Result<pfioc_table, PfError>

Will fail if buffer or table fail to translate

Source§

fn update(&mut self, io: pfioc_table) -> Result<(), PfError>

Will fail if buffer or table fail to update

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.