pub enum PlanValidationError {
EmptyPlan,
DuplicateStateId {
state_id: StateId,
},
MissingStateForEdge {
missing: StateId,
},
CircularDependency {
cycle: Vec<StateId>,
},
DanglingDependencyTag {
state_id: StateId,
missing_tag: Tag,
},
}Expand description
Plan validation errors (fail-fast).
These errors are intended for plan construction time, before a run is started. They help callers distinguish malformed planner output from runtime failures that occur later inside the execution engine.
Variants§
EmptyPlan
The plan contained no states.
DuplicateStateId
A state identifier appeared more than once.
MissingStateForEdge
A dependency edge referenced a state that does not exist in the graph.
CircularDependency
The graph contained a cycle.
DanglingDependencyTag
Optional: if planners derive edges from tag dependencies, they may validate those too.
Trait Implementations§
Source§impl Clone for PlanValidationError
impl Clone for PlanValidationError
Source§fn clone(&self) -> PlanValidationError
fn clone(&self) -> PlanValidationError
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 PlanValidationError
impl Debug for PlanValidationError
Source§impl<'de> Deserialize<'de> for PlanValidationError
impl<'de> Deserialize<'de> for PlanValidationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlanValidationError
impl PartialEq for PlanValidationError
Source§impl Serialize for PlanValidationError
impl Serialize for PlanValidationError
impl Eq for PlanValidationError
impl StructuralPartialEq for PlanValidationError
Auto Trait Implementations§
impl Freeze for PlanValidationError
impl RefUnwindSafe for PlanValidationError
impl Send for PlanValidationError
impl Sync for PlanValidationError
impl Unpin for PlanValidationError
impl UnsafeUnpin for PlanValidationError
impl UnwindSafe for PlanValidationError
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