pub enum ActionQueueEvent {
TaskReachedTerminalSuccess {
task_id: TaskId,
},
RunChangedState {
task_id: TaskId,
new_state: RunState,
},
BudgetThresholdCrossed {
task_id: TaskId,
dimension: BudgetDimension,
pct: u8,
},
CustomEvent {
key: String,
},
ActorRegistered {
actor_id: ActorId,
},
ActorDeregistered {
actor_id: ActorId,
},
ActorHeartbeatTimeout {
actor_id: ActorId,
},
LedgerEntryAppended {
tenant_id: TenantId,
ledger_key: String,
},
}Expand description
An event that occurred within the dispatch loop, evaluated against subscriptions.
Variants§
TaskReachedTerminalSuccess
A task reached terminal success (all runs completed).
RunChangedState
A run of the given task transitioned to a new state.
BudgetThresholdCrossed
A budget dimension crossed a percentage threshold for the given task.
Fields
§
dimension: BudgetDimensionThe budget dimension.
CustomEvent
An application-defined custom event.
ActorRegistered
A remote actor registered with the hub.
ActorDeregistered
A remote actor deregistered (explicit or heartbeat timeout).
ActorHeartbeatTimeout
A remote actor’s heartbeat timed out.
LedgerEntryAppended
A ledger entry was appended in the platform layer.
Trait Implementations§
Source§impl Clone for ActionQueueEvent
impl Clone for ActionQueueEvent
Source§fn clone(&self) -> ActionQueueEvent
fn clone(&self) -> ActionQueueEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionQueueEvent
impl Debug for ActionQueueEvent
Source§impl PartialEq for ActionQueueEvent
impl PartialEq for ActionQueueEvent
impl Eq for ActionQueueEvent
impl StructuralPartialEq for ActionQueueEvent
Auto Trait Implementations§
impl Freeze for ActionQueueEvent
impl RefUnwindSafe for ActionQueueEvent
impl Send for ActionQueueEvent
impl Sync for ActionQueueEvent
impl Unpin for ActionQueueEvent
impl UnsafeUnpin for ActionQueueEvent
impl UnwindSafe for ActionQueueEvent
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