pub enum Flow {
Continue,
Exit,
}Expand description
Whether the game loop should continue or stop after a frame.
Variants§
Continue
Run another frame.
Exit
Stop the loop. The driver returns and the terminal unwinds normally, so
backend Drop logic (for example crossterm’s terminal restore) runs.
Trait Implementations§
impl Copy for Flow
impl Eq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Freeze for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
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