pub enum LoadErrorKind {
Invalid,
Code,
UnknownKey,
Unsupported,
InvalidTarget,
MissingImplementation,
InvalidParams,
DuplicateId,
}Expand description
What went wrong while loading a machine definition.
Variants§
Invalid
The definition is not valid JSON, or a value has the wrong shape.
Code
A {"@code": ...} or {"@expr": ...} node that is malformed, or in a language with no evaluator.
UnknownKey
A key that machineFromJSON does not accept.
Unsupported
A v6 feature this runtime does not support (yet).
InvalidTarget
A transition target, initial, history target or stateIn id that does not resolve.
MissingImplementation
A guard, action or delay referenced by name with no implementation.
InvalidParams
An implementation rejected the params it was given.
DuplicateId
Two states share an id.
Trait Implementations§
Source§impl Clone for LoadErrorKind
impl Clone for LoadErrorKind
Source§impl Debug for LoadErrorKind
impl Debug for LoadErrorKind
impl Eq for LoadErrorKind
Source§impl PartialEq for LoadErrorKind
impl PartialEq for LoadErrorKind
impl StructuralPartialEq for LoadErrorKind
Auto Trait Implementations§
impl Forget for LoadErrorKind
impl Freeze for LoadErrorKind
impl Move for LoadErrorKind
impl RefUnwindSafe for LoadErrorKind
impl Send for LoadErrorKind
impl Sync for LoadErrorKind
impl Unpin for LoadErrorKind
impl UnsafeUnpin for LoadErrorKind
impl UnwindSafe for LoadErrorKind
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.