Skip to main content

AppliedMutation

Enum AppliedMutation 

Source
pub enum AppliedMutation {
Show 22 variants TaskCreate { task_id: TaskId, }, RunCreate { run_id: RunId, task_id: TaskId, }, RunStateTransition { run_id: RunId, previous_state: RunState, new_state: RunState, }, AttemptStart { run_id: RunId, attempt_id: AttemptId, }, AttemptFinish { run_id: RunId, attempt_id: AttemptId, outcome: AttemptOutcome, }, LeaseAcquire { run_id: RunId, owner: String, expiry: u64, }, LeaseHeartbeat { run_id: RunId, owner: String, expiry: u64, }, LeaseExpire { run_id: RunId, owner: String, expiry: u64, }, LeaseRelease { run_id: RunId, owner: String, expiry: u64, }, EnginePause, EngineResume, TaskCancel { task_id: TaskId, }, DependencyDeclare { task_id: TaskId, depends_on: Vec<TaskId>, }, RunSuspend { run_id: RunId, }, RunResume { run_id: RunId, }, BudgetAllocate { task_id: TaskId, dimension: BudgetDimension, limit: u64, }, BudgetConsume { task_id: TaskId, dimension: BudgetDimension, amount: u64, }, BudgetReplenish { task_id: TaskId, dimension: BudgetDimension, new_limit: u64, }, SubscriptionCreate { subscription_id: SubscriptionId, task_id: TaskId, }, SubscriptionCancel { subscription_id: SubscriptionId, }, SubscriptionTrigger { subscription_id: SubscriptionId, }, NoOp,
}
Expand description

Applied semantic mutation metadata.

Variants§

§

TaskCreate

Task specification was durably created.

Fields

§task_id: TaskId

Created task identifier.

§

RunCreate

Run instance was durably created.

Fields

§run_id: RunId

Created run identifier.

§task_id: TaskId

Owning task identifier.

§

RunStateTransition

Run lifecycle transition was durably applied.

Fields

§run_id: RunId

Run receiving the transition.

§previous_state: RunState

Transition source state.

§new_state: RunState

Transition target state.

§

AttemptStart

Attempt start was durably applied.

Fields

§run_id: RunId

Run that owns the attempt.

§attempt_id: AttemptId

Attempt that started.

§

AttemptFinish

Attempt finish was durably applied.

Fields

§run_id: RunId

Run that owns the attempt.

§attempt_id: AttemptId

Attempt that finished.

§outcome: AttemptOutcome

Attempt outcome (result kind + optional error detail).

§

LeaseAcquire

Lease acquire was durably applied.

Fields

§run_id: RunId

Run targeted by lease acquisition.

§owner: String

Lease owner identity.

§expiry: u64

Lease expiry timestamp.

§

LeaseHeartbeat

Lease heartbeat was durably applied.

Fields

§run_id: RunId

Run targeted by lease heartbeat.

§owner: String

Lease owner identity.

§expiry: u64

Lease expiry timestamp after heartbeat.

§

LeaseExpire

Lease expiry was durably applied.

Fields

§run_id: RunId

Run targeted by lease expiry.

§owner: String

Lease owner identity.

§expiry: u64

Lease expiry timestamp being expired.

§

LeaseRelease

Lease release was durably applied.

Fields

§run_id: RunId

Run targeted by lease release.

§owner: String

Lease owner identity.

§expiry: u64

Lease expiry timestamp at release time.

§

EnginePause

Engine pause intent was durably applied.

§

EngineResume

Engine resume intent was durably applied.

§

TaskCancel

Task cancellation intent was durably applied.

Fields

§task_id: TaskId

Task targeted by cancellation intent.

§

DependencyDeclare

Task dependency declarations were durably applied.

Fields

§task_id: TaskId

Task whose promotion is gated.

§depends_on: Vec<TaskId>

The prerequisite task identifiers.

§

RunSuspend

Run suspension was durably applied.

Fields

§run_id: RunId

The suspended run.

§

RunResume

Run resumption was durably applied.

Fields

§run_id: RunId

The resumed run.

§

BudgetAllocate

Budget allocation was durably applied.

Fields

§task_id: TaskId

Task whose budget was allocated.

§dimension: BudgetDimension

Dimension of the allocated budget.

§limit: u64

Allocated limit.

§

BudgetConsume

Budget consumption was durably applied.

Fields

§task_id: TaskId

Task whose budget was consumed.

§dimension: BudgetDimension

Dimension consumed.

§amount: u64

Amount consumed.

§

BudgetReplenish

Budget replenishment was durably applied.

Fields

§task_id: TaskId

Task whose budget was replenished.

§dimension: BudgetDimension

Dimension replenished.

§new_limit: u64

New limit after replenishment.

§

SubscriptionCreate

Subscription creation was durably applied.

Fields

§subscription_id: SubscriptionId

The created subscription.

§task_id: TaskId

The subscribing task.

§

SubscriptionCancel

Subscription cancellation was durably applied.

Fields

§subscription_id: SubscriptionId

The canceled subscription.

§

SubscriptionTrigger

Subscription trigger was durably applied.

Fields

§subscription_id: SubscriptionId

The triggered subscription.

§

NoOp

No specific mutation outcome needed (actor/platform events).

Trait Implementations§

Source§

impl Clone for AppliedMutation

Source§

fn clone(&self) -> AppliedMutation

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AppliedMutation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AppliedMutation

Source§

fn eq(&self, other: &AppliedMutation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for AppliedMutation

Source§

impl StructuralPartialEq for AppliedMutation

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.