pub enum BackgroundHangMonitorControlMsg {
EnableSampler(Duration, Duration),
DisableSampler,
Exit(IpcSender<()>),
}
Expand description
Messages to control the sampling profiler.
Variants§
EnableSampler(Duration, Duration)
Enable the sampler, with a given sampling rate and max total sampling duration.
DisableSampler
Exit(IpcSender<()>)
Exit, and propagate the signal to monitored components.
Trait Implementations§
source§impl<'de> Deserialize<'de> for BackgroundHangMonitorControlMsg
impl<'de> Deserialize<'de> for BackgroundHangMonitorControlMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more