pub struct StuckDetector(/* private fields */);Available on crate feature
unstable-stuck-detection only.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 duplicate 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
Auto Trait Implementations§
impl Freeze for StuckDetector
impl !RefUnwindSafe for StuckDetector
impl Send for StuckDetector
impl Sync for StuckDetector
impl Unpin for StuckDetector
impl !UnwindSafe for StuckDetector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more