pub enum WorkloopSpecError {
Show 19 variants
ToleranceUndeclared,
ToleranceZeroDuration,
ZeroCadencePeriod,
NoSignals,
EmptySignalName,
SignalOnlyNeedsDurationTolerance {
invariant: String,
},
EmptyInvariantName,
DuplicateInvariant {
invariant: String,
},
MissingRecordType {
invariant: String,
},
NoConfirmingRoutes {
invariant: String,
},
EmptyConfirmingRoute {
invariant: String,
},
NoInvariants,
ZeroRetention,
UnrepresentableRetention {
seconds: u64,
},
EmptyCarryField,
CarrySeedTargetNotJson,
CarrySeedTargetNotAnObject,
EmptyHatchIdentityPart,
HatchIdentityNulByte,
}Expand description
Errors refusing an invalid workloop declaration at the engine boundary.
The estate rule is NO ASSUMED DEFAULTS: tolerance, cadence, and retention are declarations, and an absent declaration is refused — here as well as at the AWL checker, because the engine validates at its own boundary.
Variants§
ToleranceUndeclared
A tolerance declared neither the count form nor the duration form.
ToleranceZeroDuration
A duration-form tolerance declared a zero duration.
ZeroCadencePeriod
A cadence arming declared a zero period.
NoSignals
A signal arming declared no signals.
EmptySignalName
A signal name was empty.
SignalOnlyNeedsDurationTolerance
An invariant on a signal-only loop declared only the count form (the R2.4a silent-death cross-rule).
EmptyInvariantName
An invariant name was empty.
DuplicateInvariant
Two invariants shared a name.
MissingRecordType
An invariant declared no current-state record type.
NoConfirmingRoutes
An invariant declared no confirming route.
EmptyConfirmingRoute
A confirming route name was empty.
NoInvariants
The workloop declared no invariants.
ZeroRetention
The retention window was zero.
UnrepresentableRetention
The retention window could not be expressed as a calendar duration, so no cutoff instant could ever be derived from it.
EmptyCarryField
A carry field name was empty.
CarrySeedTargetNotJson
A generation-1 start payload was not JSON at all.
CarrySeedTargetNotAnObject
A generation-1 start payload was JSON but not an object.
EmptyHatchIdentityPart
A hatch identity part was empty.
HatchIdentityNulByte
A hatch identity part contained a NUL byte, which the derivation reserves as its separator.
Trait Implementations§
Source§impl Clone for WorkloopSpecError
impl Clone for WorkloopSpecError
Source§fn clone(&self) -> WorkloopSpecError
fn clone(&self) -> WorkloopSpecError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkloopSpecError
impl Debug for WorkloopSpecError
Source§impl Display for WorkloopSpecError
impl Display for WorkloopSpecError
impl Eq for WorkloopSpecError
Source§impl Error for WorkloopSpecError
impl Error for WorkloopSpecError
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()