Struct titanium::desktop::gui::libdruid::TimerToken
pub struct TimerToken(_);
Expand description
A token that uniquely identifies a running timer.
Implementations§
§impl TimerToken
impl TimerToken
pub const INVALID: TimerToken = TimerToken(0)
pub const INVALID: TimerToken = TimerToken(0)
A token that does not correspond to any timer.
pub fn next() -> TimerToken
pub fn next() -> TimerToken
Create a new token.
pub 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§
§impl Clone for TimerToken
impl Clone for TimerToken
§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 more§impl Debug for TimerToken
impl Debug for TimerToken
§impl Hash for TimerToken
impl Hash for TimerToken
§impl PartialEq<TimerToken> for TimerToken
impl PartialEq<TimerToken> for TimerToken
§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 ==
.§impl PartialOrd<TimerToken> for TimerToken
impl PartialOrd<TimerToken> for TimerToken
§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§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§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.