pub enum Verdict {
StillRunning,
ConfirmedGone,
Reused,
}Expand description
What reconciliation concluded about one recorded run.
Variants§
StillRunning
The process is still running: same identifier, same start time.
ConfirmedGone
Nothing is running under that identifier. The run was interrupted and is recoverable.
Reused
Something is running under that identifier, but it did not start when this run did.
The identifier was reused. The original run is gone, and the supervisor must not wait for whatever inherited its number.
Implementations§
Source§impl Verdict
impl Verdict
Sourcepub const fn is_recoverable(self) -> bool
pub const fn is_recoverable(self) -> bool
Whether recovery may start a replacement for this run.
Recovery requires the previous process to be confirmed gone. A reused identifier is also gone — that is why it is a separate verdict rather than an error: the conclusion is the same, the evidence is different, and saying so makes the log readable.
Trait Implementations§
impl Copy for Verdict
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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