pub enum TimerState {
Running,
Paused,
Stopped,
}
Expand description
The timer state.
Enumeration of all the possible state of a timer: running, paused or stopped.
Variants§
Trait Implementations§
Source§impl Clone for TimerState
impl Clone for TimerState
Source§fn clone(&self) -> TimerState
fn clone(&self) -> TimerState
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 TimerState
impl Debug for TimerState
Source§impl Default for TimerState
impl Default for TimerState
Source§fn default() -> TimerState
fn default() -> TimerState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimerState
impl<'de> Deserialize<'de> for TimerState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimerState
impl PartialEq for TimerState
Source§impl Serialize for TimerState
impl Serialize for TimerState
impl Eq for TimerState
impl StructuralPartialEq for TimerState
Auto Trait Implementations§
impl Freeze for TimerState
impl RefUnwindSafe for TimerState
impl Send for TimerState
impl Sync for TimerState
impl Unpin for TimerState
impl UnwindSafe for TimerState
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