pub enum GraphNodeError {
Control,
Truncated {
minimum: usize,
actual: usize,
},
InvalidHeader(String),
Layout(String),
NodeIdOutOfRange {
node_id: u32,
node_count: u32,
},
InvalidNode {
node_id: u32,
detail: String,
},
ArithmeticOverflow,
}Expand description
Typed graph node-block encode/decode failure.
Variants§
Control
A controlled encode/decode operation was interrupted.
Truncated
The region is shorter than its bounded fixed trailer or block geometry.
Fields
InvalidHeader(String)
Fixed magic, version, flags, lengths, or reserved trailer bytes are invalid.
Layout(String)
Layout geometry cannot describe a bounded fixed-stride region.
NodeIdOutOfRange
A node id is outside the dense row-id range.
Fields
InvalidNode
One node’s production input violates the persisted contract.
ArithmeticOverflow
Checked offset or length arithmetic overflowed.
Trait Implementations§
Source§impl Clone for GraphNodeError
impl Clone for GraphNodeError
Source§impl Debug for GraphNodeError
impl Debug for GraphNodeError
Source§impl Display for GraphNodeError
impl Display for GraphNodeError
impl Eq for GraphNodeError
Source§impl Error for GraphNodeError
impl Error for GraphNodeError
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 From<GraphNodeError> for GraphBuildError
impl From<GraphNodeError> for GraphBuildError
Source§fn from(error: GraphNodeError) -> Self
fn from(error: GraphNodeError) -> Self
Converts to this type from the input type.
Source§impl From<GraphNodeError> for RefinementError
impl From<GraphNodeError> for RefinementError
Source§fn from(error: GraphNodeError) -> Self
fn from(error: GraphNodeError) -> Self
Converts to this type from the input type.
Source§impl From<GraphNodeError> for GraphSearchError
impl From<GraphNodeError> for GraphSearchError
Source§fn from(error: GraphNodeError) -> Self
fn from(error: GraphNodeError) -> Self
Converts to this type from the input type.
Source§impl From<GraphNodeError> for SegmentError
impl From<GraphNodeError> for SegmentError
Source§fn from(error: GraphNodeError) -> Self
fn from(error: GraphNodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphNodeError
impl PartialEq for GraphNodeError
impl StructuralPartialEq for GraphNodeError
Auto Trait Implementations§
impl Freeze for GraphNodeError
impl RefUnwindSafe for GraphNodeError
impl Send for GraphNodeError
impl Sync for GraphNodeError
impl Unpin for GraphNodeError
impl UnsafeUnpin for GraphNodeError
impl UnwindSafe for GraphNodeError
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