Struct netstack3_core::routes::RawMetric
source · pub struct RawMetric(pub u32);
Expand description
The priority of a forwarding entry. Lower metrics are preferred.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Ord for RawMetric
impl Ord for RawMetric
source§impl PartialEq for RawMetric
impl PartialEq for RawMetric
source§impl PartialOrd for RawMetric
impl PartialOrd for RawMetric
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for RawMetric
impl Eq for RawMetric
impl StructuralPartialEq for RawMetric
Auto Trait Implementations§
impl Freeze for RawMetric
impl RefUnwindSafe for RawMetric
impl Send for RawMetric
impl Sync for RawMetric
impl Unpin for RawMetric
impl UnwindSafe for RawMetric
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.