pub enum FaultCode {
Show 17 variants
WorkflowInvalidInput,
WorkflowInvalidWorkResult,
WorkflowInvalidMachine,
WorkflowInvalidSnapshot,
WorkflowMachineFailed,
WorkflowEngineFailed,
WorkflowInvalidEdit,
WorkflowInvalidJournal,
WorkflowJournalFailed,
WorkflowJournalFenced,
WorkflowRunNotFound,
WorkflowClosed,
WorkflowLeaseRefused,
WorkflowLeaseFailed,
WorkflowHostActionFailed,
WorkflowWakeFailed,
WorkflowListenerFailed,
}Expand description
The stable code of a Fault, which a caller matches on, and never the
message: the codes of the workflow contract.
Variants§
WorkflowInvalidInput
A chunk that is no input, nor a batch of inputs.
WorkflowInvalidWorkResult
A result of the other kind of work: done of invoked work, or
resolved or rejected of a host action.
WorkflowInvalidMachine
A machine the engine can’t load.
WorkflowInvalidSnapshot
A snapshot to reopen of a state the engine can’t restore.
WorkflowMachineFailed
A machine whose own code threw as it started, so the run has no state to go on from.
WorkflowEngineFailed
An engine that failed outside a step of the machine, so the run can’t go on.
WorkflowInvalidEdit
An edit of a machine’s definition that can’t apply.
WorkflowInvalidJournal
A journal a host can’t reopen a run of.
WorkflowJournalFailed
A journal whose append failed.
WorkflowJournalFenced
A journal that refused an append of a writer behind another.
WorkflowRunNotFound
A run its runner does not know.
WorkflowClosed
A write to a host that is closed.
WorkflowLeaseRefused
A run another holder has, whose lease the claim did not get.
WorkflowLeaseFailed
A lease whose release failed as its run closed.
WorkflowHostActionFailed
A handler of a host action that failed: the host tries it again.
WorkflowWakeFailed
A host’s durable wake that failed to set or clear.
WorkflowListenerFailed
A listener of a store that failed as it heard of a record.
Implementations§
Source§impl FaultCode
impl FaultCode
Sourcepub fn is_recoverable(self) -> bool
pub fn is_recoverable(self) -> bool
Whether the run goes on after a fault of this code, which is then its chunk’s terminal outcome: an input that is no input, or a result of the other kind of work.
Trait Implementations§
impl Copy for FaultCode
Source§impl<'de> Deserialize<'de> for FaultCode
impl<'de> Deserialize<'de> for FaultCode
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>,
impl Eq for FaultCode
impl StructuralPartialEq for FaultCode
Auto Trait Implementations§
impl Forget for FaultCode
impl Freeze for FaultCode
impl Move for FaultCode
impl RefUnwindSafe for FaultCode
impl Send for FaultCode
impl Sync for FaultCode
impl Unpin for FaultCode
impl UnsafeUnpin for FaultCode
impl UnwindSafe for FaultCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.