Struct druid::TimerToken
source · pub struct TimerToken(_);
Expand description
A token that uniquely identifies a running timer.
Implementations§
source§impl TimerToken
impl TimerToken
sourcepub const INVALID: TimerToken = TimerToken(0)
pub const INVALID: TimerToken = TimerToken(0)
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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<TimerToken> for TimerToken
impl PartialEq<TimerToken> for TimerToken
source§fn eq(&self, other: &TimerToken) -> bool
fn eq(&self, other: &TimerToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TimerToken> for TimerToken
impl PartialOrd<TimerToken> for TimerToken
source§fn partial_cmp(&self, other: &TimerToken) -> Option<Ordering>
fn partial_cmp(&self, other: &TimerToken) -> Option<Ordering>
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 TimerToken
impl Eq for TimerToken
impl StructuralEq for TimerToken
impl StructuralPartialEq for TimerToken
Auto Trait Implementations§
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> 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>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.