pub struct Instant<C: ClockSource> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
Source§impl<C: ClockSource> Clone for Instant<C>
impl<C: ClockSource> Clone for Instant<C>
Source§impl<C: ClockSource> HrTimerExpires for Instant<C>
impl<C: ClockSource> HrTimerExpires for Instant<C>
Source§fn into_nanos(self) -> i64
fn into_nanos(self) -> i64
Converts the expiration time into a nanosecond representation. Read more
Source§impl<C: Ord + ClockSource> Ord for Instant<C>
impl<C: Ord + ClockSource> Ord for Instant<C>
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<C: PartialOrd + ClockSource> PartialOrd for Instant<C>
impl<C: PartialOrd + ClockSource> PartialOrd for Instant<C>
Source§impl<C: ClockSource> Sub for Instant<C>
impl<C: ClockSource> Sub for Instant<C>
impl<C: ClockSource> Copy for Instant<C>
impl<C: Eq + ClockSource> Eq for Instant<C>
impl<C: ClockSource> StructuralPartialEq for Instant<C>
Auto Trait Implementations§
impl<C> Freeze for Instant<C>
impl<C> RefUnwindSafe for Instant<C>where
C: RefUnwindSafe,
impl<C> Send for Instant<C>where
C: Send,
impl<C> Sync for Instant<C>where
C: Sync,
impl<C> Unpin for Instant<C>where
C: Unpin,
impl<C> UnwindSafe for Instant<C>where
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more