pub enum ManualLinkError {
InvalidDeclaration(ManifestError),
MissingEndpoint {
index: usize,
endpoint: ManualLinkEndpoint,
value: String,
},
AmbiguousEndpoint {
index: usize,
endpoint: ManualLinkEndpoint,
value: String,
candidates: Vec<NodeId>,
},
ResolvedSelfLink {
index: usize,
node: String,
},
DuplicateResolvedLink {
first: usize,
duplicate: usize,
source_node: NodeId,
target_node: NodeId,
relation: EdgeKind,
},
MissingSuppressionTarget {
index: usize,
source_node: NodeId,
target_node: NodeId,
relation: EdgeKind,
},
}Expand description
Error returned while resolving exact manual relationships.
Variants§
InvalidDeclaration(ManifestError)
A manually constructed declaration violates manifest invariants.
MissingEndpoint
No node has the exact requested identifier or stable key.
Fields
§
endpoint: ManualLinkEndpointEndpoint field.
AmbiguousEndpoint
More than one node has the exact requested identifier or stable key.
Fields
§
endpoint: ManualLinkEndpointEndpoint field.
ResolvedSelfLink
Distinct endpoint literals resolved to the same node.
DuplicateResolvedLink
Distinct declarations resolved to the same graph relationship.
Fields
MissingSuppressionTarget
A suppression did not identify an existing exact automatic relationship.
Trait Implementations§
Source§impl Debug for ManualLinkError
impl Debug for ManualLinkError
Source§impl Display for ManualLinkError
impl Display for ManualLinkError
Source§impl Error for ManualLinkError
impl Error for ManualLinkError
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<ManifestError> for ManualLinkError
impl From<ManifestError> for ManualLinkError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ManualLinkError
impl !UnwindSafe for ManualLinkError
impl Freeze for ManualLinkError
impl Send for ManualLinkError
impl Sync for ManualLinkError
impl Unpin for ManualLinkError
impl UnsafeUnpin for ManualLinkError
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