Struct fidl_fuchsia_net_routes_ext::rules::InstalledRule
source · 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<I: PartialEq + Ip> PartialEq for InstalledRule<I>
impl<I: PartialEq + Ip> PartialEq for InstalledRule<I>
source§fn eq(&self, other: &InstalledRule<I>) -> bool
fn eq(&self, other: &InstalledRule<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<InstalledRuleV4> for InstalledRule<Ipv4>
impl TryFrom<InstalledRuleV4> for InstalledRule<Ipv4>
§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>
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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.