Skip to main content

Ending

Enum Ending 

Source
#[non_exhaustive]
pub enum Ending {
Show 16 variants Invariant(String), Property(String), Deadlock, Behavior, Lasso { back_to: usize, }, Stuttering, Assertion, Error { ec: Option<String>, }, InvariantError { name: String, ec: String, }, TemporalStateError { ec: String, endpoint: TemporalStateEndpoint, }, TemporalSourceError { ec: String, endpoint: TemporalSourceEndpoint, }, NextStateError { ec: String, endpoint: NextStateEndpoint, }, CandidateStateError { ec: String, endpoint: CandidateStateEndpoint, }, ViewSourceError { ec: String, endpoint: ViewSourceEndpoint, }, PartialNext { endpoint: PartialStateEndpoint, }, PartialInit { endpoint: PartialStateEndpoint, },
}
Expand description

What a trace claims about its end.

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.
§

Invariant(String)

The named invariant is false in the last state.

§

Property(String)

The named action property is false on the last step; for a one-state trace, the named implied initial predicate is false in it.

§

Deadlock

The last state has no successor.

§

Behavior

No violation: the trace is a behavior of the specification.

§

Lasso

A liveness counterexample that loops back to state back_to (0-based).

Fields

§back_to: usize

The state the last state’s successor equals.

§

Stuttering

A liveness counterexample that stutters after the last state.

§

Assertion

An assertion fails while the last state is expanded.

§

Error

An evaluation error while the last state is expanded.

Fields

§ec: Option<String>

TLC’s error class, if known (EC name).

§

InvariantError

The named invariant fails to evaluate in the last state. Earlier invariants and earlier states must pass. ec names the underlying error, not TLC’s TLC_INVARIANT_EVALUATION_FAILED wrapper.

Fields

§name: String

The configured invariant name.

§ec: String

The underlying evaluation error’s EC name.

§

TemporalStateError

A source-state demand error, checked only by a fresh source-bound session. Its descriptor requests independent replay, never grants authority.

Fields

§ec: String

The expected TLC evaluation error class.

§endpoint: TemporalStateEndpoint

Untrusted stage and original inner source context.

§

TemporalSourceError

A post-Next row error with independently reconstructed primary lifecycle.

Fields

§ec: String

Untrusted underlying row-error class, distinct from outer wrappers.

§endpoint: TemporalSourceEndpoint

Original row-error source only; fresh replay supplies all authority.

§

NextStateError

Next raises this underlying error before emitting any successor. Only fresh source-bound replay can establish the original context.

Fields

§ec: String

The underlying evaluation error class, never a replay wrapper.

§endpoint: NextStateEndpoint

Untrusted original source context.

§

CandidateStateError

A generated final candidate raises an independently replayed error.

Fields

§ec: String

Underlying primary error, distinct from the deciding wrapper.

§endpoint: CandidateStateEndpoint

Untrusted actual site, original source and both wrapper identities.

§

ViewSourceError

A VIEW demand fails on an independently generated candidate; the last complete row is its source, never the absent failing candidate.

Fields

§ec: String

Underlying primary error, distinct from the diagnostic wrapper.

§endpoint: ViewSourceEndpoint

Untrusted original source and both exception identities.

§

PartialNext

An actual incomplete Next candidate, separately replayed from its prefix.

Fields

§endpoint: PartialStateEndpoint

Untrusted source context and assigned/unassigned bindings.

§

PartialInit

An actual partial Init candidate, with no complete prefix state.

Fields

§endpoint: PartialStateEndpoint

Untrusted observed bindings/source, requiring fresh Init generation.

Implementations§

Source§

impl Ending

Source

pub fn to_json(&self) -> Value

The JSON form.

Source

pub fn from_json(j: &Value) -> Result<Ending, String>

Reads the JSON form.

§Errors

For an unknown kind or a missing field.

Source

pub fn from_tlc( class: &str, property: Option<&str>, back_to: Option<usize>, ) -> Option<Ending>

The ending of a TLC counterexample reported with error class class (TLC’s EC name) and violated property property. A temporal property violation needs the trace’s loop, which TLC reports separately: back_to is the state its lasso returns to (0-based), or None for stuttering.

Source

pub fn parse(text: &str) -> Result<Ending, String>

Parses the command-line form: invariant:NAME, property:NAME, deadlock, behavior, lasso:K, stuttering, assertion, error[:EC].

§Errors

For anything else.

Trait Implementations§

Source§

impl Clone for Ending

Source§

fn clone(&self) -> Ending

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 Ending

Source§

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

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

impl Eq for Ending

Source§

impl PartialEq for Ending

Source§

fn eq(&self, other: &Ending) -> 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 Ending

Auto Trait Implementations§

§

impl Forget for Ending

§

impl Freeze for Ending

§

impl Move for Ending

§

impl RefUnwindSafe for Ending

§

impl Send for Ending

§

impl Sync for Ending

§

impl Unpin for Ending

§

impl UnsafeUnpin for Ending

§

impl UnwindSafe for Ending

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> Same for T

Source§

type Output = T

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