IControlledApplicationLifetime
trait · ferroui-controls · v0.5.0
trait IControlledApplicationLifetime: IApplicationLifetime
A lifetime whose end is controlled by the application.
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.
exit
fn exit(self: &Self, handler: Rc<dyn Fn(&ControlledApplicationLifetimeExitEventArgs) -> ()>) -> Rc<dyn IDisposable>
Raised when the application is exiting. Disposing the returned handle unsubscribes.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.