pub struct InstalledRule<I: Ip> {
pub priority: RuleSetPriority,
pub index: RuleIndex,
pub matcher: RuleMatcher<I>,
pub action: RuleAction,
}
Expand description
An installed IPv4 routing rule.
Fields§
§priority: RuleSetPriority
Rule sets are ordered by the rule set priority, rule sets are disjoint and don’t have interleaving rules among them.
index: RuleIndex
Rules within a rule set are locally ordered, together with the rule set priority, this defines a global order for all installed rules.
matcher: RuleMatcher<I>
The matcher part of the rule, the rule is a no-op if the matcher does not match the packet.
action: RuleAction
The action part of the rule that describes what to do if the matcher matches the packet.
Trait Implementations§
Source§impl<I: Clone + Ip> Clone for InstalledRule<I>
impl<I: Clone + Ip> Clone for InstalledRule<I>
Source§fn clone(&self) -> InstalledRule<I>
fn clone(&self) -> InstalledRule<I>
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 From<InstalledRule<Ipv4>> for InstalledRuleV4
impl From<InstalledRule<Ipv4>> for InstalledRuleV4
Source§fn from(_: InstalledRule<Ipv4>) -> Self
fn from(_: InstalledRule<Ipv4>) -> Self
Converts to this type from the input type.
Source§impl From<InstalledRule<Ipv6>> for InstalledRuleV6
impl From<InstalledRule<Ipv6>> for InstalledRuleV6
Source§fn from(_: InstalledRule<Ipv6>) -> Self
fn from(_: InstalledRule<Ipv6>) -> Self
Converts to this type from the input type.
Source§impl TryFrom<InstalledRuleV4> for InstalledRule<Ipv4>
impl TryFrom<InstalledRuleV4> for InstalledRule<Ipv4>
Source§type Error = RuleFidlConversionError
type Error = RuleFidlConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<InstalledRuleV6> for InstalledRule<Ipv6>
impl TryFrom<InstalledRuleV6> for InstalledRule<Ipv6>
Source§type Error = RuleFidlConversionError
type Error = RuleFidlConversionError
The type returned in the event of a conversion error.
impl<I: Eq + Ip> Eq for InstalledRule<I>
impl<I: Ip> StructuralPartialEq for InstalledRule<I>
Auto Trait Implementations§
impl<I> Freeze for InstalledRule<I>
impl<I> RefUnwindSafe for InstalledRule<I>
impl<I> Send for InstalledRule<I>
impl<I> Sync for InstalledRule<I>
impl<I> Unpin for InstalledRule<I>
impl<I> UnwindSafe for InstalledRule<I>
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
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.