pub enum PgError {
Show 17 variants
MissingAction(Action),
MissingClock(Clock),
MissingLocation(Location),
MissingVar(Var),
MissingTransition,
TypeMismatch,
UnsatisfiedGuard,
MissingComponent(usize),
EffectOnReceive,
EffectOnSend,
Communication(Action),
MismatchingPostStates,
NotSend(Action),
NotReceive(Action),
NoEffects,
Invariant,
Type(TypeError),
}Expand description
The error type for operations with ProgramGraphBuilders and ProgramGraphs.
Variants§
MissingAction(Action)
There is no such action in the PG.
MissingClock(Clock)
There is no such clock in the PG.
MissingLocation(Location)
There is no such location in the PG.
MissingVar(Var)
There is no such variable in the PG.
MissingTransition
The PG does not allow this transition.
TypeMismatch
Types that should be matching are not, or are not compatible with each other.
UnsatisfiedGuard
Transition’s guard is not satisfied.
MissingComponent(usize)
The tuple has no component for such index.
EffectOnReceive
Cannot add effects to a Receive action.
EffectOnSend
Cannot add effects to a Send action.
Communication(Action)
This action is a communication (either Send or Receive).
MismatchingPostStates
Mismatching (i.e., wrong number) post states of transition.
NotSend(Action)
The action is a not a Send communication.
NotReceive(Action)
The action is a not a Receive communication.
NoEffects
The epsilon action has no effects.
Invariant
A time invariant is not satisfied.
Type(TypeError)
A type error
Trait Implementations§
Source§impl Error for PgError
impl Error for PgError
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()
impl Copy for PgError
Auto Trait Implementations§
impl Freeze for PgError
impl RefUnwindSafe for PgError
impl Send for PgError
impl Sync for PgError
impl Unpin for PgError
impl UnsafeUnpin for PgError
impl UnwindSafe for PgError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more