pub enum PolicyOrRule {
Policy {
table: String,
chain: String,
policy: String,
},
Rule {
table: String,
chain: String,
value: String,
},
}Expand description
Policy or rule representation for iptables firewall backend.
Variants§
Trait Implementations§
Source§impl Clone for PolicyOrRule
impl Clone for PolicyOrRule
Source§fn clone(&self) -> PolicyOrRule
fn clone(&self) -> PolicyOrRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§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 PolicyOrRule
impl RefUnwindSafe for PolicyOrRule
impl Send for PolicyOrRule
impl Sync for PolicyOrRule
impl Unpin for PolicyOrRule
impl UnsafeUnpin for PolicyOrRule
impl UnwindSafe for PolicyOrRule
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