Enum climer::timer::TimerState
source · pub enum TimerState {
Stopped,
Running,
Paused,
Finished,
}
Variants§
Implementations§
source§impl TimerState
impl TimerState
pub fn is_stopped(&self) -> bool
pub fn is_running(&self) -> bool
pub fn is_paused(&self) -> bool
pub fn is_finished(&self) -> bool
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 PartialEq<TimerState> for TimerState
impl PartialEq<TimerState> for TimerState
source§fn eq(&self, other: &TimerState) -> bool
fn eq(&self, other: &TimerState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.