#[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: PartialNextEndpoint,
},
PartialInit {
endpoint: PartialStateEndpoint,
},
}Expand description
What a trace claims about its end.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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).
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.
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
TemporalStateError
A source-state demand error, checked only by a fresh source-bound session. Its descriptor requests independent replay, never grants authority.
Fields
endpoint: TemporalStateEndpointUntrusted stage and original inner source context.
TemporalSourceError
A post-Next row error with independently reconstructed primary lifecycle.
Fields
endpoint: TemporalSourceEndpointOriginal 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
endpoint: NextStateEndpointUntrusted original source context.
CandidateStateError
A generated final candidate raises an independently replayed error.
Fields
endpoint: CandidateStateEndpointUntrusted 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
endpoint: ViewSourceEndpointUntrusted original source and both exception identities.
PartialNext
An actual incomplete Next candidate, separately replayed from its prefix.
Fields
endpoint: PartialNextEndpointUntrusted source context and assigned/unassigned bindings.
PartialInit
An actual partial Init candidate, with no complete prefix state.
Fields
endpoint: PartialStateEndpointUntrusted observed bindings/source, requiring fresh Init generation.
Implementations§
Source§impl Ending
impl Ending
Sourcepub fn from_tlc(
class: &str,
property: Option<&str>,
back_to: Option<usize>,
) -> Option<Self>
pub fn from_tlc( class: &str, property: Option<&str>, back_to: Option<usize>, ) -> Option<Self>
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.