Struct pftables_rs::bridge::PfrTable[][src]

pub struct PfrTable {
    pub anchor: String,
    pub name: String,
}

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

Fields

anchor: Stringname: String

Implementations

impl PfrTable[src]

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

Constructs a PfrTable with a given name

pub fn default() -> PfrTable[src]

Constructs a PfrTable with empty values

Trait Implementations

impl Clone for PfrTable[src]

impl Debug for PfrTable[src]

impl PartialEq<PfrTable> for PfrTable[src]

impl StructuralPartialEq for PfrTable[src]

impl Translate<pfr_table> for PfrTable[src]

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

Fails if strings in C structure contain invalid UTF-8

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

Fails if the length of anchor is equal to or greater than PATH_MAX, or if the length of name is equal to or greater than PF_TABLE_NAME_SIZE

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.