pub enum ActionState {
Prepared,
AwaitingConfirmation,
Authorized,
DispatchCommitted,
Executing,
Succeeded,
Rejected,
Retryable,
Unknown,
Reconciled,
}Expand description
Lifecycle of an action intent; dispatch_committed is the point of no return.
Variants§
Prepared
Created by a transition; not yet authorized.
AwaitingConfirmation
Waiting for a human confirmation.
Authorized
Guards passed; may be dispatched.
DispatchCommitted
Effect committed; cancellation can no longer claim it was not performed.
Executing
Provider reports progress.
Succeeded
Terminal success.
Rejected
Terminal rejection.
Retryable
Failed; waits for its backoff, then dispatches again.
Unknown
Outcome unknown; waits for reconciliation.
Reconciled
Outcome established by reconciliation.
Implementations§
Source§impl ActionState
impl ActionState
Sourcepub fn can_transition_to(self, next: Self) -> bool
pub fn can_transition_to(self, next: Self) -> bool
Whether the state machine allows self -> next.
Sourcepub fn dispatch_committed(self) -> bool
pub fn dispatch_committed(self) -> bool
Whether the effect may already have happened.
Trait Implementations§
Source§impl Clone for ActionState
impl Clone for ActionState
Source§fn clone(&self) -> ActionState
fn clone(&self) -> ActionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActionState
Source§impl Debug for ActionState
impl Debug for ActionState
Source§impl<'de> Deserialize<'de> for ActionState
impl<'de> Deserialize<'de> for ActionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActionState
Source§impl PartialEq for ActionState
impl PartialEq for ActionState
Source§impl Serialize for ActionState
impl Serialize for ActionState
impl StructuralPartialEq for ActionState
Auto Trait Implementations§
impl Freeze for ActionState
impl RefUnwindSafe for ActionState
impl Send for ActionState
impl Sync for ActionState
impl Unpin for ActionState
impl UnsafeUnpin for ActionState
impl UnwindSafe for ActionState
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