Skip to main content

CompositionTlaError

Enum CompositionTlaError 

Source
pub enum CompositionTlaError {
Show 20 variants InvalidTlcModel { machine: String, reason: String, }, UnknownRouteSourceMachine { composition: String, route: String, machine: String, }, UnknownRouteTargetMachine { composition: String, route: String, machine: String, }, UnknownRouteEffect { composition: String, route: String, machine: String, effect: String, }, UnknownRouteTargetInput { composition: String, route: String, machine: String, input: String, }, UnknownRouteTargetSignal { composition: String, route: String, machine: String, signal: String, }, UnknownObligationField { composition: String, protocol: String, effect: String, field: String, }, UnknownRouteComponent { composition: String, component: &'static str, }, UnknownWitnessMachine { composition: String, witness: String, machine: String, }, UnknownWitnessTransition { composition: String, witness: String, machine: String, transition: String, }, HelperCycle { machine: String, cycle: String, }, UnchangedFrameCollision { composition: String, collision: UnchangedFrameCollision, }, MachineUnchangedFrameCollision { machine: String, collision: UnchangedFrameCollision, }, Compile(String), InvalidSuppliedMachine { machine: String, error: String, }, DuplicateSuppliedMachine { machine: String, }, ShadowsCanonicalMachine { machine: String, }, CanonicalNamedTypeMismatch { machine: String, named_type: String, reason: CanonicalNamedTypeMismatchKind, }, DivergentNamedTypeBinding { composition: String, named_type: String, }, InvalidCompositionForCatalog { composition: String, error: String, },
}

Variants§

§

InvalidTlcModel

Fields

§machine: String
§reason: String
§

UnknownRouteSourceMachine

A route’s from_machine is not a declared machine instance.

Fields

§composition: String
§route: String
§machine: String
§

UnknownRouteTargetMachine

A route’s to.machine is not a declared machine instance.

Fields

§composition: String
§route: String
§machine: String
§

UnknownRouteEffect

A route’s effect_variant is not a declared effect on its source machine.

Fields

§composition: String
§route: String
§machine: String
§effect: String
§

UnknownRouteTargetInput

A route’s to.input_variant is not a declared input on its target machine.

Fields

§composition: String
§route: String
§machine: String
§input: String
§

UnknownRouteTargetSignal

A route’s to.input_variant is not a declared signal on its target machine.

Fields

§composition: String
§route: String
§machine: String
§signal: String
§

UnknownObligationField

An obligation field on a handoff protocol is absent from the matching effect payload (used to be papered over with an "unknown_<field>" sentinel literal in the generated TLA record).

Fields

§composition: String
§protocol: String
§effect: String
§field: String
§

UnknownRouteComponent

A generated composition CASE operator over a route component could not resolve a non-empty mapping for a composition that declares the corresponding routes/machines. The previous behaviour laundered this into an OTHER -> "unknown_*" sentinel, so a model that referenced an undeclared actor/machine/effect/input still type-checked. Fail closed instead: the operator’s OTHER catch-all is dropped and an empty mapping for a populated composition is a hard codegen error.

Fields

§composition: String
§component: &'static str
§

UnknownWitnessMachine

A witness references a machine instance that is not part of the composition. The renderer must not fall back to an arbitrary schema, because that can make a liveness witness weaker than its catalog claim.

Fields

§composition: String
§witness: String
§machine: String
§

UnknownWitnessTransition

A witness references a transition that is not declared on its machine. Dropping the transition silently would let the generated witness omit required progress while still rendering.

Fields

§composition: String
§witness: String
§machine: String
§transition: String
§

HelperCycle

A machine declares a helper-call cycle, so no topological helper order exists. The previous fallback silently emitted the cyclic helpers in an arbitrary order, producing a model that references helpers before they are defined.

Fields

§machine: String
§cycle: String
§

UnchangedFrameCollision

Two distinct UNCHANGED frames derived the same generated operator name. Disambiguating with a counter would be order-dependent and would hand one action a frame condition it did not have, so this fails the render.

Fields

§composition: String
§

MachineUnchangedFrameCollision

Two distinct UNCHANGED frames derived the same generated operator name while rendering a per-machine model.

Fields

§machine: String
§

Compile(String)

Lower-level TLA compiler construction/render failure (e.g. an unknown machine schema for a composition instance).

§

InvalidSuppliedMachine

A supplied machine schema fails its own validation.

Fields

§machine: String
§error: String
§

DuplicateSuppliedMachine

A supplied catalog lists the same machine id twice.

Fields

§machine: String
§

ShadowsCanonicalMachine

A supplied machine reuses a canonical Meerkat machine id with a different schema. A caller’s catalog may include a canonical machine unchanged, but never a shadow of it.

Fields

§machine: String
§

CanonicalNamedTypeMismatch

A machine that shares a canonical machine’s id omits a canonical struct named-type binding, or binds a shared named type with a different generated domain shape.

Fields

§machine: String
§named_type: String
§

DivergentNamedTypeBinding

Two machines of one composition bind the same named type with different generated domain shapes.

Fields

§composition: String
§named_type: String
§

InvalidCompositionForCatalog

The composition does not validate against the supplied catalog.

Fields

§composition: String
§error: String

Trait Implementations§

Source§

impl Debug for CompositionTlaError

Source§

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

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

impl Display for CompositionTlaError

Source§

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

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

impl Error for CompositionTlaError

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

Replaced by Error::source.
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 From<String> for CompositionTlaError

Source§

fn from(message: String) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Forget for CompositionTlaError

§

impl Freeze for CompositionTlaError
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, &'static str: Freeze,

§

impl Move for CompositionTlaError

§

impl RefUnwindSafe for CompositionTlaError

§

impl Send for CompositionTlaError
where RawVecInner: Send, &'static str: Send,

§

impl Sync for CompositionTlaError
where RawVecInner: Sync,

§

impl Unpin for CompositionTlaError
where *const u8 is !null: Unpin, &'static str: Unpin,

§

impl UnsafeUnpin for CompositionTlaError

§

impl UnwindSafe for CompositionTlaError
where RawVecInner: UnwindSafe, &'static str: UnwindSafe,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CoreExecutorTurnFinalizationGuard for T
where T: Send,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more