pub trait BackgroundHangMonitorRegister: BackgroundHangMonitorClone + Send {
    fn register_component(
        &self,
        component: MonitoredComponentId,
        transient_hang_timeout: Duration,
        permanent_hang_timeout: Duration,
        exit_signal: Option<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§

source

fn register_component(
    &self,
    component: MonitoredComponentId,
    transient_hang_timeout: Duration,
    permanent_hang_timeout: Duration,
    exit_signal: Option<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>

source§

fn clone(&self) -> Box<dyn BackgroundHangMonitorRegister>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§