pub enum ConcurrentMerkleTreeError {
LeafIndexOutOfBounds,
InvalidProof,
CannotAppendEmptyNode,
TreeFull,
TreeAlreadyInitialized,
TreeNotInitialized,
RootNotFound,
LeafContentsModified,
TreeNonEmpty,
}
Expand description
Concurrent merkle tree operation errors
Variants
LeafIndexOutOfBounds
Received an index larger than the rightmost index
InvalidProof
Invalid root recomputed from proof
CannotAppendEmptyNode
Node to append cannot be empty
TreeFull
The tree is at capacity
TreeAlreadyInitialized
This tree has already been initialized
TreeNotInitialized
This tree has not yet been initialized
RootNotFound
Root passed as argument cannot be found in stored changelog buffer
LeafContentsModified
The tree’s current leaf value does not match the supplied proof’s leaf value
TreeNonEmpty
Tree has at least 1 non-EMTPY leaf
Trait Implementations
sourceimpl Debug for ConcurrentMerkleTreeError
impl Debug for ConcurrentMerkleTreeError
sourceimpl Display for ConcurrentMerkleTreeError
impl Display for ConcurrentMerkleTreeError
sourceimpl Error for ConcurrentMerkleTreeError
impl Error for ConcurrentMerkleTreeError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<ConcurrentMerkleTreeError> for ConcurrentMerkleTreeError
impl PartialEq<ConcurrentMerkleTreeError> for ConcurrentMerkleTreeError
sourcefn eq(&self, other: &ConcurrentMerkleTreeError) -> bool
fn eq(&self, other: &ConcurrentMerkleTreeError) -> bool
impl Eq for ConcurrentMerkleTreeError
impl StructuralEq for ConcurrentMerkleTreeError
impl StructuralPartialEq for ConcurrentMerkleTreeError
Auto Trait Implementations
impl RefUnwindSafe for ConcurrentMerkleTreeError
impl Send for ConcurrentMerkleTreeError
impl Sync for ConcurrentMerkleTreeError
impl Unpin for ConcurrentMerkleTreeError
impl UnwindSafe for ConcurrentMerkleTreeError
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more