Struct pandet::DetectorHook
source · pub struct DetectorHook<Msg = ()>(_)
where
Msg: Send + 'static;
Expand description
Notifies PanicDetector
/PanicMonitor
of panics.
Can be bounded to Alert
and LocalAlert
types.
Trait Implementations§
source§impl<Msg> AsRef<DetectorHook<Msg>> for PanicDetector<Msg>where
Msg: Unpin + Send + 'static,
impl<Msg> AsRef<DetectorHook<Msg>> for PanicDetector<Msg>where Msg: Unpin + Send + 'static,
source§fn as_ref(&self) -> &DetectorHook<Msg>
fn as_ref(&self) -> &DetectorHook<Msg>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<Msg> AsRef<DetectorHook<Msg>> for PanicMonitor<Msg>where
Msg: Unpin + Send + 'static,
impl<Msg> AsRef<DetectorHook<Msg>> for PanicMonitor<Msg>where Msg: Unpin + Send + 'static,
source§fn as_ref(&self) -> &DetectorHook<Msg>
fn as_ref(&self) -> &DetectorHook<Msg>
Converts this type into a shared reference of the (usually inferred) input type.