pub struct TimerToken(/* private fields */);
Expand description
A token that uniquely identifies a running timer.
Implementations§
Source§impl TimerToken
impl TimerToken
Sourcepub const INVALID: TimerToken
pub const INVALID: TimerToken
A token that does not correspond to any timer.
Sourcepub fn next() -> TimerToken
pub fn next() -> TimerToken
Create a new token.
Sourcepub const fn from_raw(id: u64) -> TimerToken
pub const fn from_raw(id: u64) -> TimerToken
Create a new token from a raw value.
Trait Implementations§
Source§impl Clone for TimerToken
impl Clone for TimerToken
Source§fn clone(&self) -> TimerToken
fn clone(&self) -> TimerToken
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimerToken
impl Debug for TimerToken
Source§impl Hash for TimerToken
impl Hash for TimerToken
Source§impl PartialEq for TimerToken
impl PartialEq for TimerToken
Source§impl PartialOrd for TimerToken
impl PartialOrd for TimerToken
impl Copy for TimerToken
impl Eq for TimerToken
impl StructuralPartialEq for TimerToken
Auto Trait Implementations§
impl Freeze for TimerToken
impl RefUnwindSafe for TimerToken
impl Send for TimerToken
impl Sync for TimerToken
impl Unpin for TimerToken
impl UnwindSafe for TimerToken
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.