Skip to main content

WorkloopSpecError

Enum WorkloopSpecError 

Source
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).

Fields

§invariant: String

Invariant missing the duration form.

§

EmptyInvariantName

An invariant name was empty.

§

DuplicateInvariant

Two invariants shared a name.

Fields

§invariant: String

The duplicated invariant name.

§

MissingRecordType

An invariant declared no current-state record type.

Fields

§invariant: String

Invariant missing the record type.

§

NoConfirmingRoutes

An invariant declared no confirming route.

Fields

§invariant: String

Invariant with no confirming route.

§

EmptyConfirmingRoute

A confirming route name was empty.

Fields

§invariant: String

Invariant carrying the empty route name.

§

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.

Fields

§seconds: u64

The declared window, in whole seconds.

§

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

Source§

fn clone(&self) -> WorkloopSpecError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WorkloopSpecError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for WorkloopSpecError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for WorkloopSpecError

Source§

impl Error for WorkloopSpecError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for WorkloopSpecError

Source§

fn eq(&self, other: &WorkloopSpecError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WorkloopSpecError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.