pub enum Control {
Wait,
Redraw,
Animate,
Quit,
}Expand description
What the loop does next.
Variants§
Wait
Sleep until something happens.
Redraw
Draw once.
Animate
Keep drawing at the frame rate.
Quit
End the loop.
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Forget for Control
impl Freeze for Control
impl Move for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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