pub struct DeadlockDiagnosticMetadata { /* private fields */ }Expand description
Machine-facing workflow deadlock diagnostic metadata.
Implementations§
Source§impl DeadlockDiagnosticMetadata
impl DeadlockDiagnosticMetadata
Sourcepub const fn new(
scheduled_node_count: usize,
pending_node_count: usize,
bounded_edge_count: usize,
no_progress_timeout_ms: u64,
cycle_policy: &'static str,
) -> Self
pub const fn new( scheduled_node_count: usize, pending_node_count: usize, bounded_edge_count: usize, no_progress_timeout_ms: u64, cycle_policy: &'static str, ) -> Self
Create workflow deadlock diagnostic metadata.
Sourcepub const fn with_terminal_counts(
self,
completed_node_count: usize,
failed_node_count: usize,
cancelled_node_count: usize,
) -> Self
pub const fn with_terminal_counts( self, completed_node_count: usize, failed_node_count: usize, cancelled_node_count: usize, ) -> Self
Attach terminal counts observed before the watchdog fired.
Sourcepub const fn with_feedback_loop(
self,
startup: &'static str,
termination: &'static str,
) -> Self
pub const fn with_feedback_loop( self, startup: &'static str, termination: &'static str, ) -> Self
Attach feedback-loop policy details.
Sourcepub const fn scheduled_node_count(&self) -> usize
pub const fn scheduled_node_count(&self) -> usize
Nodes scheduled for the run.
Sourcepub const fn pending_node_count(&self) -> usize
pub const fn pending_node_count(&self) -> usize
Nodes still pending when the watchdog fired.
Sourcepub const fn completed_node_count(&self) -> usize
pub const fn completed_node_count(&self) -> usize
Nodes completed before the watchdog fired.
Sourcepub const fn failed_node_count(&self) -> usize
pub const fn failed_node_count(&self) -> usize
Nodes failed before the watchdog fired.
Sourcepub const fn cancelled_node_count(&self) -> usize
pub const fn cancelled_node_count(&self) -> usize
Nodes cancelled before the watchdog fired.
Sourcepub const fn bounded_edge_count(&self) -> usize
pub const fn bounded_edge_count(&self) -> usize
Bounded graph edges in the workflow.
Sourcepub const fn no_progress_timeout_ms(&self) -> u64
pub const fn no_progress_timeout_ms(&self) -> u64
No-progress interval in milliseconds.
Sourcepub const fn cycle_policy(&self) -> &'static str
pub const fn cycle_policy(&self) -> &'static str
Cycle policy active when the watchdog fired.
Sourcepub const fn feedback_loop_startup(&self) -> Option<&'static str>
pub const fn feedback_loop_startup(&self) -> Option<&'static str>
Feedback-loop startup policy, when cycles were explicitly allowed.
Sourcepub const fn feedback_loop_termination(&self) -> Option<&'static str>
pub const fn feedback_loop_termination(&self) -> Option<&'static str>
Feedback-loop termination policy, when cycles were explicitly allowed.
Trait Implementations§
Source§impl Clone for DeadlockDiagnosticMetadata
impl Clone for DeadlockDiagnosticMetadata
Source§fn clone(&self) -> DeadlockDiagnosticMetadata
fn clone(&self) -> DeadlockDiagnosticMetadata
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 DeadlockDiagnosticMetadata
impl Debug for DeadlockDiagnosticMetadata
Source§impl PartialEq for DeadlockDiagnosticMetadata
impl PartialEq for DeadlockDiagnosticMetadata
Source§fn eq(&self, other: &DeadlockDiagnosticMetadata) -> bool
fn eq(&self, other: &DeadlockDiagnosticMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DeadlockDiagnosticMetadata
impl StructuralPartialEq for DeadlockDiagnosticMetadata
Auto Trait Implementations§
impl Freeze for DeadlockDiagnosticMetadata
impl RefUnwindSafe for DeadlockDiagnosticMetadata
impl Send for DeadlockDiagnosticMetadata
impl Sync for DeadlockDiagnosticMetadata
impl Unpin for DeadlockDiagnosticMetadata
impl UnsafeUnpin for DeadlockDiagnosticMetadata
impl UnwindSafe for DeadlockDiagnosticMetadata
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).