Skip to main content

BackgroundHangMonitorExitSignal

Trait BackgroundHangMonitorExitSignal 

Source
pub trait BackgroundHangMonitorExitSignal: Send {
    // Required method
    fn signal_to_exit(&self);
}
Expand description

A means for the BHM to signal a monitored component to exit. Useful when the component is hanging, and cannot be notified via the usual way. The component should implement this in a way allowing for the signal to be received when hanging, if at all.

Required Methods§

Source

fn signal_to_exit(&self)

Called by the BHM, to notify the monitored component to exit.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§