[−][src]Enum act_zero::timer::TimerState
Timers will be in one of these states.
Variants
The timer is inactive. This is the default state.
The timer is configured to tick once, when the deadline is reached.
Fields of Timeout
deadline: Instant
When this timer will tick
The timer is configured to tick when the deadline is reached, and to repeat at a set interval.
Fields of Interval
Implementations
impl TimerState
[src]
pub fn deadline(&self) -> Option<Instant>
[src]
Returns the point in time when this timer will next fire, or
None
if the timer is currently inactive.
pub fn interval(&self) -> Option<Duration>
[src]
Returns the interval between ticks if the timer is active and set to repeat.
Trait Implementations
impl Clone for TimerState
[src]
pub fn clone(&self) -> TimerState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TimerState
[src]
impl Debug for TimerState
[src]
impl Default for TimerState
[src]
impl Eq for TimerState
[src]
impl Hash for TimerState
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TimerState
[src]
pub fn cmp(&self, other: &TimerState) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<TimerState> for TimerState
[src]
pub fn eq(&self, other: &TimerState) -> bool
[src]
pub fn ne(&self, other: &TimerState) -> bool
[src]
impl PartialOrd<TimerState> for TimerState
[src]
pub fn partial_cmp(&self, other: &TimerState) -> Option<Ordering>
[src]
pub fn lt(&self, other: &TimerState) -> bool
[src]
pub fn le(&self, other: &TimerState) -> bool
[src]
pub fn gt(&self, other: &TimerState) -> bool
[src]
pub fn ge(&self, other: &TimerState) -> bool
[src]
impl StructuralEq for TimerState
[src]
impl StructuralPartialEq for TimerState
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimerState
[src]
impl Send for TimerState
[src]
impl Sync for TimerState
[src]
impl Unpin for TimerState
[src]
impl UnwindSafe for TimerState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,