pub trait BackgroundHangMonitorRegister: BackgroundHangMonitorClone + Send {
// Required method
fn register_component(
&self,
component: MonitoredComponentId,
transient_hang_timeout: Duration,
permanent_hang_timeout: Duration,
exit_signal: Box<dyn BackgroundHangMonitorExitSignal>,
) -> Box<dyn BackgroundHangMonitor>;
}Expand description
A handle to register components for hang monitoring, and to receive a means to communicate with the underlying hang monitor worker.
Required Methods§
Sourcefn register_component(
&self,
component: MonitoredComponentId,
transient_hang_timeout: Duration,
permanent_hang_timeout: Duration,
exit_signal: Box<dyn BackgroundHangMonitorExitSignal>,
) -> Box<dyn BackgroundHangMonitor>
fn register_component( &self, component: MonitoredComponentId, transient_hang_timeout: Duration, permanent_hang_timeout: Duration, exit_signal: Box<dyn BackgroundHangMonitorExitSignal>, ) -> Box<dyn BackgroundHangMonitor>
Register a component for hang monitoring: to be called from within the thread to be monitored for hangs.
Trait Implementations§
Source§impl Clone for Box<dyn BackgroundHangMonitorRegister>
impl Clone for Box<dyn BackgroundHangMonitorRegister>
Source§fn clone(&self) -> Box<dyn BackgroundHangMonitorRegister>
fn clone(&self) -> Box<dyn BackgroundHangMonitorRegister>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more