pub enum MachineDocError {
EmptyStateList {
machine: &'static str,
},
DuplicateStateId {
machine: &'static str,
state: &'static str,
},
DuplicateTransitionId {
machine: &'static str,
transition: &'static str,
},
DuplicateTransitionSite {
machine: &'static str,
state: &'static str,
transition: &'static str,
},
MissingSourceState {
machine: &'static str,
transition: &'static str,
},
MissingTargetState {
machine: &'static str,
transition: &'static str,
},
EmptyTargetSet {
machine: &'static str,
transition: &'static str,
},
DuplicateTargetState {
machine: &'static str,
transition: &'static str,
state: &'static str,
},
}Expand description
Error returned when a MachineGraph cannot be exported into a MachineDoc.
Variants§
EmptyStateList
The graph’s state list is empty.
DuplicateStateId
One state id appears more than once in the graph’s state list.
DuplicateTransitionId
One transition id appears more than once in the graph’s transition list.
DuplicateTransitionSite
One source state declares the same transition method name more than once.
MissingSourceState
One transition source state is not present in the graph’s state list.
MissingTargetState
One transition target state is not present in the graph’s state list.
EmptyTargetSet
One transition site declares no legal target states.
DuplicateTargetState
One transition lists the same target state more than once.
Trait Implementations§
Source§impl Clone for MachineDocError
impl Clone for MachineDocError
Source§fn clone(&self) -> MachineDocError
fn clone(&self) -> MachineDocError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MachineDocError
impl Debug for MachineDocError
Source§impl Display for MachineDocError
impl Display for MachineDocError
Source§impl Error for MachineDocError
impl Error for MachineDocError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MachineDocError
impl PartialEq for MachineDocError
impl Copy for MachineDocError
impl Eq for MachineDocError
impl StructuralPartialEq for MachineDocError
Auto Trait Implementations§
impl Freeze for MachineDocError
impl RefUnwindSafe for MachineDocError
impl Send for MachineDocError
impl Sync for MachineDocError
impl Unpin for MachineDocError
impl UnsafeUnpin for MachineDocError
impl UnwindSafe for MachineDocError
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