pub enum InclusionProofError {
LeafTooNew,
HashNotKnown,
}
Expand description
An error occurring when attempting to validate an inclusion proof.
Variants§
LeafTooNew
Indicates that the leaf is too new to be present at the given point in the log history.
HashNotKnown
Indicates that certain hashes weren’t known that are needed to perform proof validation.
Trait Implementations§
source§impl Clone for InclusionProofError
impl Clone for InclusionProofError
source§fn clone(&self) -> InclusionProofError
fn clone(&self) -> InclusionProofError
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 InclusionProofError
impl Debug for InclusionProofError
source§impl Display for InclusionProofError
impl Display for InclusionProofError
source§impl Error for InclusionProofError
impl Error for InclusionProofError
1.30.0 · 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 InclusionProofError
impl Ord for InclusionProofError
source§fn cmp(&self, other: &InclusionProofError) -> Ordering
fn cmp(&self, other: &InclusionProofError) -> 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 InclusionProofError
impl PartialEq for InclusionProofError
source§fn eq(&self, other: &InclusionProofError) -> bool
fn eq(&self, other: &InclusionProofError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InclusionProofError
impl PartialOrd for InclusionProofError
source§fn partial_cmp(&self, other: &InclusionProofError) -> Option<Ordering>
fn partial_cmp(&self, other: &InclusionProofError) -> 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 InclusionProofError
impl Eq for InclusionProofError
impl StructuralPartialEq for InclusionProofError
Auto Trait Implementations§
impl Freeze for InclusionProofError
impl RefUnwindSafe for InclusionProofError
impl Send for InclusionProofError
impl Sync for InclusionProofError
impl Unpin for InclusionProofError
impl UnwindSafe for InclusionProofError
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.