Enum netstack3_core::ip::Lifetime
source · pub enum Lifetime<I> {
Finite(I),
Infinite,
}
Expand description
A lifetime that may be forever/infinite.
Variants§
Trait Implementations§
source§impl<I: Instant> InspectableValue for Lifetime<I>
impl<I: Instant> InspectableValue for Lifetime<I>
source§impl<I: Ord> Ord for Lifetime<I>
impl<I: Ord> Ord for Lifetime<I>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<I: PartialEq> PartialEq for Lifetime<I>
impl<I: PartialEq> PartialEq for Lifetime<I>
source§impl<I: PartialOrd> PartialOrd for Lifetime<I>
impl<I: PartialOrd> PartialOrd for Lifetime<I>
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<I: Copy> Copy for Lifetime<I>
impl<I: Eq> Eq for Lifetime<I>
impl<I> StructuralPartialEq for Lifetime<I>
Auto Trait Implementations§
impl<I> Freeze for Lifetime<I>where
I: Freeze,
impl<I> RefUnwindSafe for Lifetime<I>where
I: RefUnwindSafe,
impl<I> Send for Lifetime<I>where
I: Send,
impl<I> Sync for Lifetime<I>where
I: Sync,
impl<I> Unpin for Lifetime<I>where
I: Unpin,
impl<I> UnwindSafe for Lifetime<I>where
I: UnwindSafe,
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.