pub enum FastStateMachineBuildError {
StateCountNotConfigured,
EventCountNotConfigured,
InvalidStateCount {
count: usize,
},
InvalidEventCount {
count: usize,
},
TransitionTableOverflow {
state_count: usize,
event_count: usize,
},
InitialStateOutOfRange {
state: usize,
state_count: usize,
},
FinalStateOutOfRange {
state: usize,
state_count: usize,
},
TransitionSourceOutOfRange {
source_state: usize,
state_count: usize,
},
TransitionEventOutOfRange {
event: usize,
event_count: usize,
},
TransitionTargetOutOfRange {
target: usize,
state_count: usize,
},
DuplicateTransition {
source_state: usize,
event: usize,
existing_target: usize,
new_target: usize,
},
}Expand description
Error returned when fast state machine configuration is invalid.
Variants§
StateCountNotConfigured
State count was not configured.
EventCountNotConfigured
Event count was not configured.
InvalidStateCount
State count must be greater than zero.
InvalidEventCount
Event count must be greater than zero.
TransitionTableOverflow
Transition transition-table size overflowed usize.
InitialStateOutOfRange
An initial state code exceeds the configured state count.
FinalStateOutOfRange
A final state code exceeds the configured state count.
TransitionSourceOutOfRange
A transition source code exceeds the configured state count.
TransitionEventOutOfRange
A transition event code exceeds the configured event count.
TransitionTargetOutOfRange
A transition target code exceeds the configured state count.
DuplicateTransition
Same (source, event) maps to two different targets.
Trait Implementations§
Source§impl Clone for FastStateMachineBuildError
impl Clone for FastStateMachineBuildError
Source§fn clone(&self) -> FastStateMachineBuildError
fn clone(&self) -> FastStateMachineBuildError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FastStateMachineBuildError
impl Debug for FastStateMachineBuildError
Source§impl Display for FastStateMachineBuildError
impl Display for FastStateMachineBuildError
Source§impl Error for FastStateMachineBuildError
impl Error for FastStateMachineBuildError
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 FastStateMachineBuildError
impl PartialEq for FastStateMachineBuildError
Source§fn eq(&self, other: &FastStateMachineBuildError) -> bool
fn eq(&self, other: &FastStateMachineBuildError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FastStateMachineBuildError
impl Eq for FastStateMachineBuildError
impl StructuralPartialEq for FastStateMachineBuildError
Auto Trait Implementations§
impl Freeze for FastStateMachineBuildError
impl RefUnwindSafe for FastStateMachineBuildError
impl Send for FastStateMachineBuildError
impl Sync for FastStateMachineBuildError
impl Unpin for FastStateMachineBuildError
impl UnsafeUnpin for FastStateMachineBuildError
impl UnwindSafe for FastStateMachineBuildError
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