pub enum GraphLoadError {
InvalidResponse(String),
InvalidRow {
kind: &'static str,
index: usize,
details: String,
},
IncompleteSelection {
kind: &'static str,
limit: usize,
},
DuplicateExternalIdentity(ExternalId),
MultipleGraphMetadataRows {
count: usize,
},
Graph(GraphError),
}Expand description
Failure to validate raw graph response bytes.
Variants§
InvalidResponse(String)
The response is not the expected two-array result object.
InvalidRow
A projected row is missing or contains an invalid field.
Fields
IncompleteSelection
More rows existed than the explicit safety limit permits.
DuplicateExternalIdentity(ExternalId)
Two internal nodes map to the same external identity.
MultipleGraphMetadataRows
Graph metadata selection returned more than one row.
Graph(GraphError)
Graph construction found a topology invariant violation.
Trait Implementations§
Source§impl Debug for GraphLoadError
impl Debug for GraphLoadError
Source§impl Display for GraphLoadError
impl Display for GraphLoadError
Source§impl Error for GraphLoadError
impl Error for GraphLoadError
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<GraphError> for GraphLoadError
impl From<GraphError> for GraphLoadError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphLoadError
impl RefUnwindSafe for GraphLoadError
impl Send for GraphLoadError
impl Sync for GraphLoadError
impl Unpin for GraphLoadError
impl UnsafeUnpin for GraphLoadError
impl UnwindSafe for GraphLoadError
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