pub enum SegmentError {
MissingLeaf(u64),
MissingHash(u64),
NonExistent,
Mismatch,
}
Expand description
Error related to segment creation or validation
Variants§
MissingLeaf(u64)
An expected leaf was missing
MissingHash(u64)
An expected hash was missing
NonExistent
The segment does not exist
Mismatch
Mismatch between expected and actual root hash
Trait Implementations§
source§impl Clone for SegmentError
impl Clone for SegmentError
source§fn clone(&self) -> SegmentError
fn clone(&self) -> SegmentError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SegmentError
impl Debug for SegmentError
source§impl Display for SegmentError
impl Display for SegmentError
source§impl Error for SegmentError
impl Error for SegmentError
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 SegmentError
impl PartialEq for SegmentError
impl Eq for SegmentError
impl StructuralPartialEq for SegmentError
Auto Trait Implementations§
impl Freeze for SegmentError
impl RefUnwindSafe for SegmentError
impl Send for SegmentError
impl Sync for SegmentError
impl Unpin for SegmentError
impl UnwindSafe for SegmentError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.