pub enum ClockOp {
Read,
Pause,
Step {
ms: f64,
},
Resume,
}Expand description
What an app.clock request asks for.
Variants§
Read
{}: report the clock.
Pause
{pause: true}: freeze time at the current frame’s.
Step
{step_ms: N}: freeze (if running), then move the frozen time on by N ms for one frame.
Resume
{resume: true}: let time run again from the frozen value (no jump).
Implementations§
Trait Implementations§
impl Copy for ClockOp
impl StructuralPartialEq for ClockOp
Auto Trait Implementations§
impl Forget for ClockOp
impl Freeze for ClockOp
impl Move for ClockOp
impl RefUnwindSafe for ClockOp
impl Send for ClockOp
impl Sync for ClockOp
impl Unpin for ClockOp
impl UnsafeUnpin for ClockOp
impl UnwindSafe for ClockOp
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