#[non_exhaustive]pub enum ErasureError {
StateDeserialization {
workflow: WorkflowKey,
},
CommandDeserialization {
workflow: WorkflowKey,
},
EventDeserialization {
workflow: WorkflowKey,
},
Serialization {
workflow: WorkflowKey,
},
InvalidOperation {
workflow: WorkflowKey,
reason: String,
},
UnknownWorkflow {
workflow: WorkflowKey,
},
DuplicateWorkflow {
workflow: WorkflowKey,
},
CaseMismatch {
workflow: WorkflowKey,
},
VersionMismatch {
workflow: WorkflowKey,
registered: WorkflowVersion,
found: WorkflowVersion,
},
}Expand description
Errors raised by the type-erasure boundary of the workflow registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StateDeserialization
A stored state could not be deserialized into the workflow’s state type.
Fields
workflow: WorkflowKeyThe workflow.
CommandDeserialization
A JSON command could not be deserialized into the workflow’s command type.
Fields
workflow: WorkflowKeyThe workflow.
EventDeserialization
A JSON event could not be deserialized into the workflow’s event type.
Fields
workflow: WorkflowKeyThe workflow.
Serialization
A typed value could not be serialized at the boundary.
Fields
workflow: WorkflowKeyThe workflow.
InvalidOperation
An operation’s declaration cannot be used.
UnknownWorkflow
The registry has no workflow with this key.
Fields
workflow: WorkflowKeyThe key.
DuplicateWorkflow
Two definitions were registered under the same key.
Fields
workflow: WorkflowKeyThe key.
CaseMismatch
An erased call was asked to compile or build against a case other than the one the act resolved to, or at another revision.
Fields
workflow: WorkflowKeyThe workflow.
VersionMismatch
A stored record names a version different from the registered one.
Fields
workflow: WorkflowKeyThe key.
registered: WorkflowVersionVersion in the registry.
found: WorkflowVersionVersion found on the record.
Trait Implementations§
Source§impl Clone for ErasureError
impl Clone for ErasureError
Source§impl Debug for ErasureError
impl Debug for ErasureError
Source§impl<'de> Deserialize<'de> for ErasureError
impl<'de> Deserialize<'de> for ErasureError
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>,
Source§impl Display for ErasureError
impl Display for ErasureError
impl Eq for ErasureError
Source§impl Error for ErasureError
impl Error for ErasureError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ErasureError> for ExecutionError
impl From<ErasureError> for ExecutionError
Source§fn from(value: ErasureError) -> Self
fn from(value: ErasureError) -> Self
Source§impl From<ErasureError> for ErasedCallError
impl From<ErasureError> for ErasedCallError
Source§fn from(value: ErasureError) -> Self
fn from(value: ErasureError) -> Self
Source§impl From<ErasureError> for OrchestratorError
impl From<ErasureError> for OrchestratorError
Source§fn from(value: ErasureError) -> Self
fn from(value: ErasureError) -> Self
Source§impl PartialEq for ErasureError
impl PartialEq for ErasureError
Source§impl Serialize for ErasureError
impl Serialize for ErasureError
impl StructuralPartialEq for ErasureError
Auto Trait Implementations§
impl Freeze for ErasureError
impl RefUnwindSafe for ErasureError
impl Send for ErasureError
impl Sync for ErasureError
impl Unpin for ErasureError
impl UnsafeUnpin for ErasureError
impl UnwindSafe for ErasureError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.