#[non_exhaustive]#[repr(u8)]pub enum TimerMode {
SingleShot = 0,
Repeated = 1,
}
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 = 0
A SingleShot timer is fired only once.
Repeated = 1
A Repeated timer is fired repeatedly until it is stopped or dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimerMode
impl RefUnwindSafe for TimerMode
impl Send for TimerMode
impl Sync for TimerMode
impl Unpin for TimerMode
impl UnwindSafe for TimerMode
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