pub enum ConcurrentMerkleTreeError {
LeafIndexOutOfBounds,
InvalidProof,
CannotAppendEmptyNode,
TreeFull,
TreeAlreadyInitialized,
TreeNotInitialized,
RootNotFound,
LeafContentsModified,
TreeNonEmpty,
}
Expand description
Exported for Anchor / Solita 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-EMPTY leaf
Trait Implementations§
source§impl Debug for ConcurrentMerkleTreeError
impl Debug for ConcurrentMerkleTreeError
source§impl Display for ConcurrentMerkleTreeError
impl Display for ConcurrentMerkleTreeError
source§impl Error for ConcurrentMerkleTreeError
impl Error for ConcurrentMerkleTreeError
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<&ConcurrentMerkleTreeError> for AccountCompressionError
impl From<&ConcurrentMerkleTreeError> for AccountCompressionError
source§fn from(_error: &ConcurrentMerkleTreeError) -> Self
fn from(_error: &ConcurrentMerkleTreeError) -> Self
Converts to this type from the input type.
impl Eq for ConcurrentMerkleTreeError
impl StructuralPartialEq for ConcurrentMerkleTreeError
Auto Trait Implementations§
impl Freeze for ConcurrentMerkleTreeError
impl RefUnwindSafe for ConcurrentMerkleTreeError
impl Send for ConcurrentMerkleTreeError
impl Sync for ConcurrentMerkleTreeError
impl Unpin for ConcurrentMerkleTreeError
impl UnwindSafe for ConcurrentMerkleTreeError
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more