Struct pftables_rs::bridge::PfIocTable [−][src]
A Rust-friendly wrapper to #[repr(C)] struct pfioc_table
Fields
table: PfrTable
buffer: 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]
impl PartialEq<PfIocTable> for PfIocTable
[src]
impl Translate<pfioc_table> for PfIocTable
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PfIocTable
impl Send for PfIocTable
impl !Sync for PfIocTable
impl Unpin for PfIocTable
impl UnwindSafe for PfIocTable
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, 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>,