pub enum Class {
Started,
TaskResult,
TaskRunning,
TaskRetrying,
TaskCancelled,
TimerFired,
SignalDelivered,
ChildDone,
UserCancel,
RunFailed,
NondeterminismDetected,
}Expand description
How prepare_event routes an event, decided from the header alone.
Variants§
Started
The run’s first event. Calls init(input) then on.started.
TaskResult
Terminal task result: succeeded or failed.
TaskRunning
Worker accepted the push.
TaskRetrying
Host planned a retry; the step goes back to scheduled on the next attempt.
TaskCancelled
The host cancelled the task (lifecycle only).
TimerFired
A timer step fired.
SignalDelivered
A signal reached a parked step.
ChildDone
A child run reached a terminal status.
UserCancel
The cancel marker: the user cancelled the run.
RunFailed
The reducer threw; the host reports the failure rather than folding it.
NondeterminismDetected
The nondeterminism marker: a re-fold diverged, so the run fails.
Implementations§
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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