#[non_exhaustive]pub enum Expression {
Show 26 variants
Immediate(Immediate),
List(Vec<Self>),
Concat {
concat: Vec<Self>,
},
Set {
set: Vec<Self>,
},
Map {
map: Map,
},
Prefix {
prefix: Prefix,
},
Range {
range: (Immediate, Immediate),
},
Payload {
payload: Payload,
},
Exthdr {
exthdr: Exthdr,
},
IpOption {
ip_option: IpOption,
},
TcpOption {
tcp_option: TcpOption,
},
SctpChunk {
sctp_chunk: SctpChunk,
},
Meta {
meta: Meta,
},
Rt {
rt: Rt,
},
Ct {
ct: Ct,
},
Numgen {
numgen: Numgen,
},
Hash(Hash),
Fib {
fib: Fib,
},
Xfrm {
ipsec: Xfrm,
},
Binary(Binary),
Verdict(Verdict),
Elem {
elem: Elem,
},
Socket {
socket: Socket,
},
Osf {
osf: Osf,
},
Synproxy {
synproxy: Option<Synproxy>,
},
Tproxy {
tproxy: Tproxy,
},
}
Expand description
Represents a rule’s match criteria
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.
Immediate(Immediate)
List(Vec<Self>)
Concat
Set
Map
Prefix
Range
Payload
Exthdr
IpOption
TcpOption
SctpChunk
Meta
Rt
Ct
Numgen
Hash(Hash)
Fib
Xfrm
Binary(Binary)
Verdict(Verdict)
Elem
Socket
Osf
Synproxy
Tproxy
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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 Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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