Struct elfo::stuck_detection::StuckDetector
source · pub struct StuckDetector(_);
Expand description
Detects stuck actors.
Usually, on_thread_park
is good place to call StuckDetector::check()
.
Implementations§
source§impl StuckDetector
impl StuckDetector
sourcepub fn check(&self) -> impl Iterator<Item = StuckActorInfo>
pub fn check(&self) -> impl Iterator<Item = StuckActorInfo>
Returns actors that run at the same thread since the last call.
Trait Implementations§
source§impl Clone for StuckDetector
impl Clone for StuckDetector
source§fn clone(&self) -> StuckDetector
fn clone(&self) -> StuckDetector
Returns a copy 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 moresource§impl Default for StuckDetector
impl Default for StuckDetector
source§fn default() -> StuckDetector
fn default() -> StuckDetector
Returns the “default value” for a type. Read more