Enum netstack3_core::routes::AddableMetric
source · pub enum AddableMetric {
MetricTracksInterface,
ExplicitMetric(RawMetric),
}
Expand description
The metric for an AddableEntry
.
Variants§
MetricTracksInterface
The entry’s metric is unspecified, and shall defer to the routing metric of its interface.
ExplicitMetric(RawMetric)
The entry’s metric shall be the following explicit value.
Trait Implementations§
source§impl Clone for AddableMetric
impl Clone for AddableMetric
source§fn clone(&self) -> AddableMetric
fn clone(&self) -> AddableMetric
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 AddableMetric
impl Debug for AddableMetric
source§impl From<Metric> for AddableMetric
impl From<Metric> for AddableMetric
source§fn from(metric: Metric) -> AddableMetric
fn from(metric: Metric) -> AddableMetric
Converts to this type from the input type.
source§impl Hash for AddableMetric
impl Hash for AddableMetric
source§impl PartialEq for AddableMetric
impl PartialEq for AddableMetric
source§fn eq(&self, other: &AddableMetric) -> bool
fn eq(&self, other: &AddableMetric) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AddableMetric
impl Eq for AddableMetric
impl StructuralPartialEq for AddableMetric
Auto Trait Implementations§
impl Freeze for AddableMetric
impl RefUnwindSafe for AddableMetric
impl Send for AddableMetric
impl Sync for AddableMetric
impl Unpin for AddableMetric
impl UnwindSafe for AddableMetric
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
§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>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.