pub enum LoopStatus {
Running,
Done,
OutOfSteps,
InterruptBefore(Vec<InterruptSignal>),
InterruptAfter(Vec<InterruptSignal>),
BudgetExceeded,
Cancelled,
Drained,
}Expand description
Status of the Pregel execution loop
Represents the current state of graph execution, including completion, interruption, and error conditions.
Variants§
Running
Loop is still running
Done
Graph execution completed normally
OutOfSteps
Recursion limit exceeded
InterruptBefore(Vec<InterruptSignal>)
Interrupt before executing next superstep
InterruptAfter(Vec<InterruptSignal>)
Interrupt after executing a superstep
BudgetExceeded
Budget limit exceeded
Cancelled
Execution was cancelled
Drained
Graph drained (no more tasks to execute)
Implementations§
Source§impl LoopStatus
impl LoopStatus
Sourcepub const fn is_running(&self) -> bool
pub const fn is_running(&self) -> bool
Check if the loop is still running
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Check if the loop has terminated
Sourcepub const fn is_interrupted(&self) -> bool
pub const fn is_interrupted(&self) -> bool
Check if the loop is interrupted
Sourcepub fn interrupt_signals(&self) -> &[InterruptSignal]
pub fn interrupt_signals(&self) -> &[InterruptSignal]
Extract interrupt signals if interrupted
Trait Implementations§
Source§impl Clone for LoopStatus
impl Clone for LoopStatus
Source§fn clone(&self) -> LoopStatus
fn clone(&self) -> LoopStatus
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 moreAuto Trait Implementations§
impl Freeze for LoopStatus
impl RefUnwindSafe for LoopStatus
impl Send for LoopStatus
impl Sync for LoopStatus
impl Unpin for LoopStatus
impl UnsafeUnpin for LoopStatus
impl UnwindSafe for LoopStatus
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