pub enum SupervisedOutcome {
Shutdown,
Continue,
Restart,
}Expand description
Result of one worker-body invocation, reported back to the supervisor loop.
Variants§
Shutdown
The worker observed the shutdown signal and exited cleanly. Do not restart.
Continue
One iteration completed successfully (a one-shot tick such as a single cluster
sync round). Loop again without recording a failure and without backing off.
The worker is expected to have already stamped its own healthy heartbeat via
crate::HealthFlag::record_ok, so a healthy tick is never misclassified as a
restart-worthy failure.
Restart
The worker returned or failed and should be restarted with backoff.
Auto Trait Implementations§
impl Freeze for SupervisedOutcome
impl RefUnwindSafe for SupervisedOutcome
impl Send for SupervisedOutcome
impl Sync for SupervisedOutcome
impl Unpin for SupervisedOutcome
impl UnsafeUnpin for SupervisedOutcome
impl UnwindSafe for SupervisedOutcome
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