#[non_exhaustive]pub enum Statement {
Show 34 variants
Accept(()),
Drop(()),
Continue(()),
Jump {
target: String,
},
Goto {
target: String,
},
Return(()),
Match(Match),
Counter(Option<Counter>),
Mangle(Mangle),
Quota(Quota),
Limit(Limit),
Flow(Flow),
Fwd(Fwd),
Notrack(Option<()>),
Dup(Dup),
Snat(Nat),
Dnat(Nat),
Masquerade(Option<Nat>),
Redirect(Option<Nat>),
Reject(Option<Reject>),
Set(Set),
Log(Option<Log>),
CtHelper(Box<Expression>),
CtTimeout(Box<Expression>),
CtExpectation(Box<Expression>),
Meter(Meter),
Queue(Option<Queue>),
CtCount(CtCount),
Tproxy(Tproxy),
Synproxy(Option<Synproxy>),
Reset {
tcp_option: Box<TcpOption>,
},
Secmark(Box<Expression>),
Vmap(Vmap),
Xt(Option<String>),
}
Expand description
Represents a rule instruction
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Accept(())
Drop(())
Continue(())
Jump
Goto
Return(())
Match(Match)
Counter(Option<Counter>)
Mangle(Mangle)
Quota(Quota)
Limit(Limit)
Flow(Flow)
Fwd(Fwd)
Notrack(Option<()>)
Dup(Dup)
Snat(Nat)
Dnat(Nat)
Masquerade(Option<Nat>)
Redirect(Option<Nat>)
Reject(Option<Reject>)
Set(Set)
Log(Option<Log>)
CtHelper(Box<Expression>)
CtTimeout(Box<Expression>)
CtExpectation(Box<Expression>)
Meter(Meter)
Queue(Option<Queue>)
CtCount(CtCount)
Tproxy(Tproxy)
Synproxy(Option<Synproxy>)
Reset
Secmark(Box<Expression>)
Vmap(Vmap)
Xt(Option<String>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Statement
impl<'de> Deserialize<'de> for Statement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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