pub enum TimerLoop {
Infinite,
Fixed(usize),
}
Expand description
The timer loop.
When the timer reaches its last cycle, it starts again from the first cycle. This structure defines the number of loops the timer should do before stopping by itself.
Variants§
Infinite
The timer loops indefinitely and therefore never stops by itself.
The only way to stop such timer is via a stop request.
Fixed(usize)
The timer stops by itself after the given number of loops.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimerLoop
impl<'de> Deserialize<'de> for TimerLoop
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
impl Eq for TimerLoop
impl StructuralPartialEq for TimerLoop
Auto Trait Implementations§
impl Freeze for TimerLoop
impl RefUnwindSafe for TimerLoop
impl Send for TimerLoop
impl Sync for TimerLoop
impl Unpin for TimerLoop
impl UnwindSafe for TimerLoop
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