pub trait BackgroundHangMonitor {
// Required methods
fn notify_activity(&self, annotation: HangAnnotation);
fn notify_wait(&self);
fn unregister(&self);
}
Expand description
Proxy methods to communicate with the background hang monitor
Required Methods§
sourcefn notify_activity(&self, annotation: HangAnnotation)
fn notify_activity(&self, annotation: HangAnnotation)
Notify the start of handling an event.
sourcefn notify_wait(&self)
fn notify_wait(&self)
Notify the start of waiting for a new event to come in.
sourcefn unregister(&self)
fn unregister(&self)
Unregister the component from monitor.