pub struct PfTable {
pub name: String,
}
Expand description
A high-level struct representing a pf table containing addresses
Fields§
§name: String
Implementations§
Source§impl PfTable
impl PfTable
Sourcepub fn get_addrs(&self, fd: &File) -> Result<Vec<PfrAddr>, PfError>
pub fn get_addrs(&self, fd: &File) -> Result<Vec<PfrAddr>, PfError>
Asks the kernel for a list of addresses in the table
Sourcepub fn add_addrs(&self, fd: &File, addrs: Vec<PfrAddr>) -> Result<(), PfError>
pub fn add_addrs(&self, fd: &File, addrs: Vec<PfrAddr>) -> Result<(), PfError>
Asks the kernel to add a list of addresses to the table
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PfTable
impl RefUnwindSafe for PfTable
impl Send for PfTable
impl Sync for PfTable
impl Unpin for PfTable
impl UnwindSafe for PfTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more