pub enum DecisionGraphError {
InvalidStateCount {
states: u16,
},
InvalidInitialState {
initial: u16,
states: u16,
},
TooManyEdges {
len: usize,
},
InvalidDestination {
edge: usize,
to: u16,
states: u16,
},
InvalidSource {
edge: usize,
from: u16,
states: u16,
},
SelfTransition {
edge: usize,
state: u16,
},
ConflictingGuards {
edge: usize,
flags: u64,
},
InvalidDelay {
edge: usize,
},
}Expand description
The first invalid graph setting or edge, returned without allocating.
Edge indices refer to the original slice in priority order. See
DecisionGraph::validate for check ordering and an example.
Variants§
InvalidStateCount
The count must be in 1..=MAX_DECISION_STATES.
InvalidInitialState
The initial state must be below the state count.
TooManyEdges
The edge count exceeds MAX_DECISION_EDGES.
InvalidDestination
This destination must be below the state count.
InvalidSource
This explicit source must be below the state count.
SelfTransition
An explicit source equals its destination; wildcard hold edges are valid.
ConflictingGuards
These sensor bits occur in both all and none.
InvalidDelay
The delay must be finite and in 0..=3600 seconds.
Trait Implementations§
Source§impl Clone for DecisionGraphError
impl Clone for DecisionGraphError
Source§fn clone(&self) -> DecisionGraphError
fn clone(&self) -> DecisionGraphError
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 DecisionGraphError
impl Debug for DecisionGraphError
Source§impl Display for DecisionGraphError
impl Display for DecisionGraphError
Source§impl Error for DecisionGraphError
impl Error for DecisionGraphError
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 From<DecisionGraphError> for AiError
impl From<DecisionGraphError> for AiError
Source§fn from(_: DecisionGraphError) -> AiError
fn from(_: DecisionGraphError) -> AiError
Converts to this type from the input type.
Source§impl PartialEq for DecisionGraphError
impl PartialEq for DecisionGraphError
impl Copy for DecisionGraphError
impl Eq for DecisionGraphError
impl StructuralPartialEq for DecisionGraphError
Auto Trait Implementations§
impl Freeze for DecisionGraphError
impl RefUnwindSafe for DecisionGraphError
impl Send for DecisionGraphError
impl Sync for DecisionGraphError
impl Unpin for DecisionGraphError
impl UnwindSafe for DecisionGraphError
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