pub enum TimerEvent {
Started,
Began(TimerCycle),
Running(TimerCycle),
Set(TimerCycle),
Paused(TimerCycle),
Resumed(TimerCycle),
Ended(TimerCycle),
Stopped,
}
Expand description
The timer event.
Enumeration of all possible events that can be triggered during the timer lifecycle.
Variants§
Started
The timer started.
Began(TimerCycle)
The timer began the given cycle.
Running(TimerCycle)
The timer is running the given cycle (tick).
Set(TimerCycle)
The timer has been set to the given cycle.
Paused(TimerCycle)
The timer has been paused at the given cycle.
Resumed(TimerCycle)
The timer has been resumed at the given cycle.
Ended(TimerCycle)
The timer ended with the given cycle.
Stopped
The timer stopped.
Trait Implementations§
Source§impl Clone for TimerEvent
impl Clone for TimerEvent
Source§fn clone(&self) -> TimerEvent
fn clone(&self) -> TimerEvent
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 TimerEvent
impl Debug for TimerEvent
Source§impl PartialEq for TimerEvent
impl PartialEq for TimerEvent
impl Eq for TimerEvent
impl StructuralPartialEq for TimerEvent
Auto Trait Implementations§
impl Freeze for TimerEvent
impl RefUnwindSafe for TimerEvent
impl Send for TimerEvent
impl Sync for TimerEvent
impl Unpin for TimerEvent
impl UnwindSafe for TimerEvent
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