pub enum ImpactError {
DuplicateNode(String),
DuplicateEdge(String),
DuplicateFreshness(String),
DanglingEdge {
edge: String,
node: String,
},
InvalidEdgeConfidence(String),
InvalidConfirmedConfidence,
InvalidBounds,
InvalidCentrality(String),
CriticalityWithoutEvidence(String),
UnknownContextNode {
context: &'static str,
node: String,
},
UnknownTarget,
AmbiguousTarget(String),
}Expand description
Validation error returned before impact analysis begins.
Variants§
DuplicateNode(String)
More than one graph node has the same identifier.
DuplicateEdge(String)
More than one graph relationship has the same identifier.
DuplicateFreshness(String)
More than one freshness record exists for the same repository.
DanglingEdge
A graph relationship references a missing endpoint.
InvalidEdgeConfidence(String)
An input edge has non-finite or out-of-range confidence.
InvalidConfirmedConfidence
The configured confirmed-confidence threshold is invalid.
InvalidBounds
One or more traversal or pagination bounds are invalid.
InvalidCentrality(String)
A supplied centrality score is non-finite or out of range.
CriticalityWithoutEvidence(String)
An explicit criticality assignment has no evidence.
UnknownContextNode
An input context references a node absent from the graph.
Fields
UnknownTarget
No graph node matches the requested target.
AmbiguousTarget(String)
A stable-key selector resolves to more than one node.
Trait Implementations§
Source§impl Debug for ImpactError
impl Debug for ImpactError
Source§impl Display for ImpactError
impl Display for ImpactError
Source§impl Error for ImpactError
impl Error for ImpactError
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 ImpactError
impl PartialEq for ImpactError
impl StructuralPartialEq for ImpactError
Auto Trait Implementations§
impl Freeze for ImpactError
impl RefUnwindSafe for ImpactError
impl Send for ImpactError
impl Sync for ImpactError
impl Unpin for ImpactError
impl UnsafeUnpin for ImpactError
impl UnwindSafe for ImpactError
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