#[non_exhaustive]pub enum RuleAttribute {
Show 20 variants
Destination(IpAddr),
Source(IpAddr),
Iifname(String),
Goto(u32),
Priority(u32),
FwMark(u32),
FwMask(u32),
Realm(RouteRealm),
TunId(u32),
SuppressIfGroup(u32),
SuppressPrefixLen(u32),
Table(u32),
Oifname(String),
L3MDev(bool),
UidRange(RuleUidRange),
Protocol(RouteProtocol),
IpProtocol(IpProtocol),
SourcePortRange(RulePortRange),
DestinationPortRange(RulePortRange),
Other(DefaultNla),
}
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.
Destination(IpAddr)
destination address
Source(IpAddr)
source address
Iifname(String)
input interface name
Goto(u32)
The priority number of another rule for super::RuleAction::Goto
Priority(u32)
FwMark(u32)
FwMask(u32)
Realm(RouteRealm)
IPv4 route realm
TunId(u32)
SuppressIfGroup(u32)
SuppressPrefixLen(u32)
Table(u32)
Oifname(String)
output interface name
L3MDev(bool)
UidRange(RuleUidRange)
Protocol(RouteProtocol)
IpProtocol(IpProtocol)
SourcePortRange(RulePortRange)
DestinationPortRange(RulePortRange)
Other(DefaultNla)
Trait Implementations§
Source§impl Clone for RuleAttribute
impl Clone for RuleAttribute
Source§fn clone(&self) -> RuleAttribute
fn clone(&self) -> RuleAttribute
Returns a copy 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 RuleAttribute
impl Debug for RuleAttribute
Source§impl Nla for RuleAttribute
impl Nla for RuleAttribute
Source§impl PartialEq for RuleAttribute
impl PartialEq for RuleAttribute
impl Eq for RuleAttribute
impl StructuralPartialEq for RuleAttribute
Auto Trait Implementations§
impl Freeze for RuleAttribute
impl RefUnwindSafe for RuleAttribute
impl Send for RuleAttribute
impl Sync for RuleAttribute
impl Unpin for RuleAttribute
impl UnwindSafe for RuleAttribute
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)