Enum netstack3_core::routes::Metric
source · pub enum Metric {
MetricTracksInterface(RawMetric),
ExplicitMetric(RawMetric),
}
Expand description
The metric for an Entry
.
Variants§
MetricTracksInterface(RawMetric)
The entry’s metric tracks its interface’s routing metric and has the included value.
ExplicitMetric(RawMetric)
The entry’s metric was explicitly set to the included value.
Implementations§
Trait Implementations§
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 PartialEq for Metric
impl PartialEq for Metric
impl Copy for Metric
impl Eq for Metric
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
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.