FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IControlledApplicationLifetime

    trait · ferroui-controls · v0.5.0

    trait IControlledApplicationLifetime: IApplicationLifetime
    

    A lifetime whose end is controlled by the application.

    View source

    Members

    startup

    fn startup(self: &Self, handler: Rc<dyn Fn(&ControlledApplicationLifetimeStartupEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Raised when the application is starting. Disposing the returned handle unsubscribes.

    Source

    exit

    fn exit(self: &Self, handler: Rc<dyn Fn(&ControlledApplicationLifetimeExitEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Raised when the application is exiting. Disposing the returned handle unsubscribes.

    Source

    shutdown

    fn shutdown(self: &Self, exit_code: i32)
    

    Shuts down the application and sets the exit code that is returned to the operating system.

    exit_code is an integer exit code for an application; the default exit code is 0.

    Source

    Trait implementations

    Availability

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