pub struct FilterRule {Show 15 fields
pub op: Op,
pub protocols: Vec<u8>,
pub src_ips: Vec<IpNet>,
pub dst_ips: Vec<IpNet>,
pub ips: Vec<IpNet>,
pub src_ports: Vec<PortRange>,
pub dst_ports: Vec<PortRange>,
pub ports: Vec<PortRange>,
pub flow_ids: Vec<u64>,
pub from_ns: Option<u64>,
pub to_ns: Option<u64>,
pub tcp_flags: Option<TcpFlagsFilter>,
pub min_len: Option<u32>,
pub max_len: Option<u32>,
pub unidirectional: bool,
}Expand description
Fields§
§op: OpHow this rule combines with the accumulated filter result.
protocols: Vec<u8>§src_ips: Vec<IpNet>§dst_ips: Vec<IpNet>§ips: Vec<IpNet>§src_ports: Vec<PortRange>§dst_ports: Vec<PortRange>§ports: Vec<PortRange>§flow_ids: Vec<u64>§from_ns: Option<u64>§to_ns: Option<u64>§tcp_flags: Option<TcpFlagsFilter>§min_len: Option<u32>§max_len: Option<u32>§unidirectional: boolTrait Implementations§
Source§impl Clone for FilterRule
impl Clone for FilterRule
Source§fn clone(&self) -> FilterRule
fn clone(&self) -> FilterRule
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 moreSource§impl Debug for FilterRule
impl Debug for FilterRule
Source§impl Default for FilterRule
impl Default for FilterRule
Source§fn default() -> FilterRule
fn default() -> FilterRule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterRule
impl RefUnwindSafe for FilterRule
impl Send for FilterRule
impl Sync for FilterRule
impl Unpin for FilterRule
impl UnsafeUnpin for FilterRule
impl UnwindSafe for FilterRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more