pub enum ConsistencyProofError {
PointsOutOfOrder,
HashNotKnown,
InclusionError(InclusionProofError),
DivergingRoots,
}
Expand description
Errors occurring when validating a consistency proof
Variants§
PointsOutOfOrder
Happens when old_length > new_length
HashNotKnown
Happens when hashes required for evaluation were not present
InclusionError(InclusionProofError)
Happens when an inclusion proof is evaluated and has an error
DivergingRoots
Happens when two inclusion proofs are evaluated and produce different roots
Trait Implementations§
source§impl Clone for ConsistencyProofError
impl Clone for ConsistencyProofError
source§fn clone(&self) -> ConsistencyProofError
fn clone(&self) -> ConsistencyProofError
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 ConsistencyProofError
impl Debug for ConsistencyProofError
source§impl Display for ConsistencyProofError
impl Display for ConsistencyProofError
source§impl Error for ConsistencyProofError
impl Error for ConsistencyProofError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<InclusionProofError> for ConsistencyProofError
impl From<InclusionProofError> for ConsistencyProofError
source§fn from(source: InclusionProofError) -> Self
fn from(source: InclusionProofError) -> Self
Converts to this type from the input type.
source§impl Ord for ConsistencyProofError
impl Ord for ConsistencyProofError
source§fn cmp(&self, other: &ConsistencyProofError) -> Ordering
fn cmp(&self, other: &ConsistencyProofError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConsistencyProofError
impl PartialEq for ConsistencyProofError
source§fn eq(&self, other: &ConsistencyProofError) -> bool
fn eq(&self, other: &ConsistencyProofError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConsistencyProofError
impl PartialOrd for ConsistencyProofError
source§fn partial_cmp(&self, other: &ConsistencyProofError) -> Option<Ordering>
fn partial_cmp(&self, other: &ConsistencyProofError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ConsistencyProofError
impl Eq for ConsistencyProofError
impl StructuralPartialEq for ConsistencyProofError
Auto Trait Implementations§
impl Freeze for ConsistencyProofError
impl RefUnwindSafe for ConsistencyProofError
impl Send for ConsistencyProofError
impl Sync for ConsistencyProofError
impl Unpin for ConsistencyProofError
impl UnwindSafe for ConsistencyProofError
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.