pub enum TimerPhase {
Normal,
Warning,
Overrun,
}Expand description
Visual phase of the timer, derived from state each frame.
Variants§
Normal
Normal — plenty of time remaining.
Warning
Warning — less than the warning threshold remaining.
Overrun
Overrun — past the configured duration.
Trait Implementations§
Source§impl Clone for TimerPhase
impl Clone for TimerPhase
Source§fn clone(&self) -> TimerPhase
fn clone(&self) -> TimerPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimerPhase
impl Debug for TimerPhase
Source§impl PartialEq for TimerPhase
impl PartialEq for TimerPhase
Source§fn eq(&self, other: &TimerPhase) -> bool
fn eq(&self, other: &TimerPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimerPhase
impl Eq for TimerPhase
impl StructuralPartialEq for TimerPhase
Auto Trait Implementations§
impl Freeze for TimerPhase
impl RefUnwindSafe for TimerPhase
impl Send for TimerPhase
impl Sync for TimerPhase
impl Unpin for TimerPhase
impl UnsafeUnpin for TimerPhase
impl UnwindSafe for TimerPhase
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.