pub struct FirewallTable {
pub table_type: ChainType,
pub chains: Vec<Chain>,
}Expand description
A firewall table containing chains for a specific purpose
Fields§
§table_type: ChainTypeTable type
chains: Vec<Chain>Chains belonging to this table
Implementations§
Source§impl FirewallTable
impl FirewallTable
Sourcepub fn new_filter() -> Self
pub fn new_filter() -> Self
Create a new filter table with default INPUT, FORWARD, OUTPUT chains
Sourcepub fn new_mangle() -> Self
pub fn new_mangle() -> Self
Create a new mangle table with all five hook points
Sourcepub fn get_chain_mut(&mut self, name: &str) -> Option<&mut Chain>
pub fn get_chain_mut(&mut self, name: &str) -> Option<&mut Chain>
Find a mutable chain by name
Sourcepub fn chains_for_hook(&self, hook: HookPoint) -> Vec<&Chain>
pub fn chains_for_hook(&self, hook: HookPoint) -> Vec<&Chain>
Get all chains for a specific hook point
Trait Implementations§
Source§impl Clone for FirewallTable
impl Clone for FirewallTable
Source§fn clone(&self) -> FirewallTable
fn clone(&self) -> FirewallTable
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirewallTable
impl RefUnwindSafe for FirewallTable
impl Send for FirewallTable
impl Sync for FirewallTable
impl Unpin for FirewallTable
impl UnwindSafe for FirewallTable
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)