pub enum EventLoopQuitBehavior {
QuitOnLastWindowClosed,
QuitOnlyExplicitly,
}
Expand description
Behavior describing how the event loop should terminate.
Variants
QuitOnLastWindowClosed
Terminate the event loop when the last window was closed.
QuitOnlyExplicitly
Keep the event loop running until Backend::quit_event_loop()
is called.
Trait Implementations
sourceimpl Clone for EventLoopQuitBehavior
impl Clone for EventLoopQuitBehavior
sourcefn clone(&self) -> EventLoopQuitBehavior
fn clone(&self) -> EventLoopQuitBehavior
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for EventLoopQuitBehavior
Auto Trait Implementations
impl RefUnwindSafe for EventLoopQuitBehavior
impl Send for EventLoopQuitBehavior
impl Sync for EventLoopQuitBehavior
impl Unpin for EventLoopQuitBehavior
impl UnwindSafe for EventLoopQuitBehavior
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more