FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShutdownRequestedEventArgs

    struct · ferroui-controls · v0.5.0

    struct ShutdownRequestedEventArgs
    

    Provides data for the shutdown requested event of an application lifetime.

    View source

    Members

    new

    fn new() -> Self
    

    Creates the event args.

    Source

    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.

    Source

    cancel

    fn cancel(self: &Self) -> bool
    

    Whether the event should be canceled.

    Source

    set_cancel

    fn set_cancel(self: &Self, value: bool)
    

    Sets whether the event should be canceled.

    Source

    is_os_shutdown

    fn is_os_shutdown(self: &Self) -> bool
    

    Is the operating system shutting down. For platform backends and the lifetimes.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.