Enum TimerMode
pub enum TimerMode {
Once,
Repeating,
}Expand description
Whether a SimulationTimer expires once or at every interval boundary.
Variants§
Once
Expires once, then stays finished until reset.
Repeating
Preserves fractional progress after every batch of interval boundaries.
Trait Implementations§
impl Copy for TimerMode
impl Eq for TimerMode
impl StructuralPartialEq for TimerMode
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