pub enum GraphValidationError {
MultipleEdgesFromOutputPort {
output_port: PortRef,
edge_count: usize,
},
EdgeReferencesNonexistentNode {
edge_source: PortRef,
edge_target: PortRef,
missing_node: NodeName,
},
EdgeReferencesNonexistentPort {
edge_source: PortRef,
edge_target: PortRef,
missing_port: PortRef,
},
EdgeSourceNotOutputPort {
edge_source: PortRef,
edge_target: PortRef,
},
EdgeTargetNotInputPort {
edge_source: PortRef,
edge_target: PortRef,
},
SalvoConditionReferencesNonexistentPort {
node_name: NodeName,
condition_name: SalvoConditionName,
is_input_condition: bool,
missing_port: PortName,
},
SalvoConditionTermReferencesNonexistentPort {
node_name: NodeName,
condition_name: SalvoConditionName,
is_input_condition: bool,
missing_port: PortName,
},
InputSalvoConditionInvalidMaxSalvos {
node_name: NodeName,
condition_name: SalvoConditionName,
max_salvos: MaxSalvos,
},
}Expand description
Errors that can occur during graph validation
Variants§
MultipleEdgesFromOutputPort
Multiple edges from same output port (fan-out not allowed)
EdgeReferencesNonexistentNode
Edge references a node that doesn’t exist
EdgeReferencesNonexistentPort
Edge references a port that doesn’t exist on the node
EdgeSourceNotOutputPort
Edge source is not an output port
EdgeTargetNotInputPort
Edge target is not an input port
SalvoConditionReferencesNonexistentPort
SalvoCondition.ports references a port that doesn’t exist
Fields
§
condition_name: SalvoConditionNameSalvoConditionTermReferencesNonexistentPort
SalvoCondition.term references a port that doesn’t exist
Fields
§
condition_name: SalvoConditionNameInputSalvoConditionInvalidMaxSalvos
Input salvo condition has max_salvos != Finite(1)
Trait Implementations§
Source§impl Clone for GraphValidationError
impl Clone for GraphValidationError
Source§fn clone(&self) -> GraphValidationError
fn clone(&self) -> GraphValidationError
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 GraphValidationError
impl Debug for GraphValidationError
Source§impl Display for GraphValidationError
impl Display for GraphValidationError
Source§impl Error for GraphValidationError
impl Error for GraphValidationError
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 GraphValidationError
impl PartialEq for GraphValidationError
impl StructuralPartialEq for GraphValidationError
Auto Trait Implementations§
impl Freeze for GraphValidationError
impl RefUnwindSafe for GraphValidationError
impl Send for GraphValidationError
impl Sync for GraphValidationError
impl Unpin for GraphValidationError
impl UnwindSafe for GraphValidationError
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