pub struct MutationRunner;Expand description
Runtime-neutral driver for one durable product-neutral mutation.
The runner does not allocate identities, spawn tasks, sleep, select retry delays, call native platform APIs, or own product transport. One invocation advances a durable record until it completes, reaches an unknown remote outcome, is fenced, or returns the first backend, store, or contract failure.
Implementations§
Source§impl MutationRunner
impl MutationRunner
Sourcepub async fn submit(
&self,
intent: MutationIntent,
execution_generation: SessionGeneration,
store: &dyn MutationJournalStore,
backend: &dyn CloudMutationBackend,
) -> MutationRunResult<MutationRunOutcome>
pub async fn submit( &self, intent: MutationIntent, execution_generation: SessionGeneration, store: &dyn MutationJournalStore, backend: &dyn CloudMutationBackend, ) -> MutationRunResult<MutationRunOutcome>
Persists a caller-owned intent, then advances its durable record.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub async fn resume(
&self,
operation_id: &OperationId,
execution_generation: SessionGeneration,
store: &dyn MutationJournalStore,
backend: &dyn CloudMutationBackend,
) -> MutationRunResult<MutationRunOutcome>
pub async fn resume( &self, operation_id: &OperationId, execution_generation: SessionGeneration, store: &dyn MutationJournalStore, backend: &dyn CloudMutationBackend, ) -> MutationRunResult<MutationRunOutcome>
Advances one already-persisted mutation using the active executor generation.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Trait Implementations§
Source§impl Clone for MutationRunner
impl Clone for MutationRunner
Source§fn clone(&self) -> MutationRunner
fn clone(&self) -> MutationRunner
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 MutationRunner
impl Debug for MutationRunner
Source§impl Default for MutationRunner
impl Default for MutationRunner
Source§fn default() -> MutationRunner
fn default() -> MutationRunner
Returns the “default value” for a type. Read more
impl Copy for MutationRunner
Auto Trait Implementations§
impl Freeze for MutationRunner
impl RefUnwindSafe for MutationRunner
impl Send for MutationRunner
impl Sync for MutationRunner
impl Unpin for MutationRunner
impl UnwindSafe for MutationRunner
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