pub enum WorkloopError {
Spec(WorkloopSpecError),
Store(StoreError),
Durability(DurabilityError),
NotRegistered {
loop_id: WorkflowId,
},
AlreadyRegistered {
loop_id: WorkflowId,
},
ZeroSweepInterval,
UnrepresentableDuration {
reason: String,
},
UndeclaredInvariant {
loop_id: WorkflowId,
invariant: String,
},
Engine {
reason: String,
},
}Expand description
Errors produced by the workloop services.
Variants§
Spec(WorkloopSpecError)
A declaration was invalid at the engine boundary (no assumed defaults: cadence, tolerance, and retention are declared or refused).
Store(StoreError)
The workloop store refused or failed an operation.
Durability(DurabilityError)
The single-Recorder append path failed.
NotRegistered
A loop id was expected to be registered and was not.
Fields
loop_id: WorkflowIdThe unregistered loop.
AlreadyRegistered
A loop was already registered under this id.
Fields
loop_id: WorkflowIdThe already-registered loop.
ZeroSweepInterval
The sweep interval was zero: the sweeper’s clock is a declared value, never defaulted, and a zero interval is a busy-spin, not a cadence.
UnrepresentableDuration
A declared duration could not be represented on the engine clock.
UndeclaredInvariant
A health sample named an invariant the loop never declared.
Fields
loop_id: WorkflowIdThe loop the sample was fed to.
Engine
The engine seam refused an operation (recording, waking, spawning).
Trait Implementations§
Source§impl Debug for WorkloopError
impl Debug for WorkloopError
Source§impl Display for WorkloopError
impl Display for WorkloopError
Source§impl Error for WorkloopError
impl Error for WorkloopError
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()