ShutdownRequestedEventArgs
struct · ferroui-controls · v0.5.0
struct ShutdownRequestedEventArgs
Provides data for the shutdown requested event of an application lifetime.
Members
newwith_is_os_shutdowncancelset_cancelis_os_shutdownwill_exit_main_loopset_will_exit_main_loop
new
fn new() -> Self
Creates the event args.
with_is_os_shutdown
fn with_is_os_shutdown(is_os_shutdown: bool) -> Self
Creates the event args for a shutdown that is or is not caused by the operating system shutting down. For platform backends and the lifetimes.
cancel
fn cancel(self: &Self) -> bool
Whether the event should be canceled.
set_cancel
fn set_cancel(self: &Self, value: bool)
Sets whether the event should be canceled.
is_os_shutdown
fn is_os_shutdown(self: &Self) -> bool
Is the operating system shutting down. For platform backends and the lifetimes.
will_exit_main_loop
fn will_exit_main_loop(self: &Self) -> bool
Indicates that the accepted shutdown will exit the main loop. For platform backends and the lifetimes.
set_will_exit_main_loop
fn set_will_exit_main_loop(self: &Self, value: bool)
Sets whether the accepted shutdown will exit the main loop.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.