pub enum DAGError {
NotFound(Hash),
VerificationFailed(Hash),
MissingParents(Vec<Hash>),
Duplicate(Hash),
}Expand description
Errors that can occur during DAG operations.
Variants§
NotFound(Hash)
Node not found in the store.
VerificationFailed(Hash)
Node failed verification (CID doesn’t match contents).
MissingParents(Vec<Hash>)
Missing parent nodes (gap in the DAG).
Duplicate(Hash)
Duplicate node (already exists).
Trait Implementations§
Source§impl Error for DAGError
impl Error for DAGError
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()
impl Eq for DAGError
impl StructuralPartialEq for DAGError
Auto Trait Implementations§
impl Freeze for DAGError
impl RefUnwindSafe for DAGError
impl Send for DAGError
impl Sync for DAGError
impl Unpin for DAGError
impl UnwindSafe for DAGError
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