Struct pftables_rs::bridge::PfrTable [−][src]
A Rust-friendly wrapper to #[repr(C)] pfr_table
Fields
anchor: String
name: 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
impl RefUnwindSafe for PfrTable
impl Send for PfrTable
impl Sync for PfrTable
impl Unpin for PfrTable
impl UnwindSafe for PfrTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,