Skip to main content

ExitHandler

Trait ExitHandler 

Source
pub trait ExitHandler:
    Send
    + Unpin
    + 'static {
    // Required method
    fn notify_exit(&self);
}
Expand description

Exit trait used to notify all other module to exit

Required Methods§

Source

fn notify_exit(&self)

notify other module to exit

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§