Struct pftables_rs::bridge::PfIocTable[][src]

pub struct PfIocTable {
    pub table: PfrTable,
    pub buffer: Vec<PfrAddr>,
    // some fields omitted
}

A Rust-friendly wrapper to #[repr(C)] struct pfioc_table

Fields

table: PfrTablebuffer: Vec<PfrAddr>

Implementations

impl PfIocTable[src]

pub fn new(name: &str) -> PfIocTable[src]

Constructs a PfIocTable with a given name

pub fn default() -> PfIocTable[src]

Constructs a PfIocTable with empty values

pub fn fire(&mut self, fd: &File, cmd: PfIocCommand) -> Result<(), PfError>[src]

Makes an ioctl system call on fd operating on this struct

pub fn size(&self) -> usize[src]

Getter method for internal value size, set by the kernel

pub fn added(&self) -> u32[src]

Getter method for internal value added, set by the kernel

pub fn deleted(&self) -> u32[src]

Getter method for internal value deleted, set by the kernel

Trait Implementations

impl Debug for PfIocTable[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Skips non-Debug field self.pfrio_buffer

impl PartialEq<PfIocTable> for PfIocTable[src]

impl Translate<pfioc_table> for PfIocTable[src]

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

Will fail if buffer or table fail to translate

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

Will fail if buffer or table fail to update

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.