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 duplicate 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)>
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<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§impl PartialOrd for InclusionProofError
impl PartialOrd for InclusionProofError
impl 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.