pub struct ExitFlag { /* private fields */ }Expand description
A cloneable and distributable flag that can be cheaply queried to see if the game has exited.
The idea is to clone this into in every thread you spawn so that they can gracefully exit when the game does.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ExitFlag
impl Send for ExitFlag
impl Sync for ExitFlag
impl Unpin for ExitFlag
impl UnwindSafe for ExitFlag
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