#[non_exhaustive]
pub enum TimerMode {
SingleShot,
Repeated,
}
Expand description
The TimerMode specifies what should happen after the timer fired.
Used by the Timer::start
function.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SingleShot
A SingleShot timer is fired only once.
Repeated
A Repeated timer is fired repeatedly until it is stopped or dropped.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TimerMode
impl Send for TimerMode
impl Sync for TimerMode
impl Unpin for TimerMode
impl UnwindSafe for TimerMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more