Enum netlink_packet_route::rule::RuleAttribute
source · #[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
)