#[non_exhaustive]pub enum WorkflowWorkerError {
InvalidConfig(String),
DuplicateDefinition {
workflow: String,
version: u32,
},
Store(WorkflowStoreError),
Checkpoint(CheckpointError),
Budget(BudgetExceeded),
}Expand description
Worker construction or execution failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidConfig(String)
The worker configuration violates a timing invariant.
DuplicateDefinition
A definition identity is already registered.
Store(WorkflowStoreError)
Distributed task-control persistence failed.
Checkpoint(CheckpointError)
Checkpoint persistence or decoding failed.
Budget(BudgetExceeded)
Persisted usage exceeds the registered workflow budget.
Trait Implementations§
Source§impl Debug for WorkflowWorkerError
impl Debug for WorkflowWorkerError
Source§impl Display for WorkflowWorkerError
impl Display for WorkflowWorkerError
Source§impl Error for WorkflowWorkerError
impl Error for WorkflowWorkerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BudgetExceeded> for WorkflowWorkerError
impl From<BudgetExceeded> for WorkflowWorkerError
Source§fn from(source: BudgetExceeded) -> Self
fn from(source: BudgetExceeded) -> Self
Converts to this type from the input type.
Source§impl From<CheckpointError> for WorkflowWorkerError
impl From<CheckpointError> for WorkflowWorkerError
Source§fn from(source: CheckpointError) -> Self
fn from(source: CheckpointError) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowStoreError> for WorkflowWorkerError
impl From<WorkflowStoreError> for WorkflowWorkerError
Source§fn from(source: WorkflowStoreError) -> Self
fn from(source: WorkflowStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkflowWorkerError
impl RefUnwindSafe for WorkflowWorkerError
impl Send for WorkflowWorkerError
impl Sync for WorkflowWorkerError
impl Unpin for WorkflowWorkerError
impl UnsafeUnpin for WorkflowWorkerError
impl UnwindSafe for WorkflowWorkerError
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