pub struct DeadlockWatchdogPolicy { /* private fields */ }Expand description
Configuration for no-progress deadlock detection.
Implementations§
Source§impl DeadlockWatchdogPolicy
impl DeadlockWatchdogPolicy
Sourcepub const fn new(no_progress_timeout: Duration) -> Self
pub const fn new(no_progress_timeout: Duration) -> Self
Create a no-progress watchdog policy.
A zero duration is allowed and fires on the next watchdog poll, which is useful for deterministic tests.
Sourcepub const fn no_progress_timeout(&self) -> Duration
pub const fn no_progress_timeout(&self) -> Duration
Maximum interval allowed without any node reaching a terminal state.
Trait Implementations§
Source§impl Clone for DeadlockWatchdogPolicy
impl Clone for DeadlockWatchdogPolicy
Source§fn clone(&self) -> DeadlockWatchdogPolicy
fn clone(&self) -> DeadlockWatchdogPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeadlockWatchdogPolicy
impl Debug for DeadlockWatchdogPolicy
Source§impl PartialEq for DeadlockWatchdogPolicy
impl PartialEq for DeadlockWatchdogPolicy
Source§fn eq(&self, other: &DeadlockWatchdogPolicy) -> bool
fn eq(&self, other: &DeadlockWatchdogPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DeadlockWatchdogPolicy
impl Eq for DeadlockWatchdogPolicy
impl StructuralPartialEq for DeadlockWatchdogPolicy
Auto Trait Implementations§
impl Freeze for DeadlockWatchdogPolicy
impl RefUnwindSafe for DeadlockWatchdogPolicy
impl Send for DeadlockWatchdogPolicy
impl Sync for DeadlockWatchdogPolicy
impl Unpin for DeadlockWatchdogPolicy
impl UnsafeUnpin for DeadlockWatchdogPolicy
impl UnwindSafe for DeadlockWatchdogPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).