Enum Event
pub enum Event {
Started {
run: RunId,
},
Timer {
run: RunId,
seq: Seq,
kind: TimerKind,
},
SignalReady {
run: RunId,
seq: Seq,
ordinal: u64,
payload: Payload,
},
Finished {
run: RunId,
},
NeedLoad {
run: RunId,
},
}Expand description
Something the host must act on.
Variants§
Started
A run was created and needs its code started.
Timer
A timer is due: a sleep fired, a retry is due, a wait timed out, or
the workflow’s deadline passed (seq is 0 for deadlines).
SignalReady
A buffered signal matches a pending wait.
Finished
A run’s Done record was applied.
NeedLoad
A parked run has a due timer; load it so the timer can fire.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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