#[repr(u32)]
pub enum AccountCompressionError {
IncorrectLeafLength,
ConcurrentMerkleTreeError,
ZeroCopyError,
ConcurrentMerkleTreeConstantsError,
CanopyLengthMismatch,
IncorrectAuthority,
IncorrectAccountOwner,
IncorrectAccountType,
}Expand description
Errors related to misconfiguration or misuse of the Merkle tree
Variants
IncorrectLeafLength
This error is currently not used.
ConcurrentMerkleTreeError
A modification to the tree was invalid and a changelog was not emitted. The proof may be invalid or out-of-date, or the provided leaf hash was invalid.
ZeroCopyError
An issue was detected with loading the provided account data for this ConcurrentMerkleTree.
ConcurrentMerkleTreeConstantsError
See ConcurrentMerkleTreeHeader for valid configuration options.
CanopyLengthMismatch
When using Canopy, the stored byte length should a multiple of the node’s byte length (32 bytes)
IncorrectAuthority
Incorrect authority account provided
IncorrectAccountOwner
Incorrect account owner
IncorrectAccountType
Incorrect account type
Implementations
Trait Implementations
sourceimpl Clone for AccountCompressionError
impl Clone for AccountCompressionError
sourcefn clone(&self) -> AccountCompressionError
fn clone(&self) -> AccountCompressionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AccountCompressionError
impl Debug for AccountCompressionError
sourceimpl Display for AccountCompressionError
impl Display for AccountCompressionError
sourceimpl From<&ConcurrentMerkleTreeError> for AccountCompressionError
impl From<&ConcurrentMerkleTreeError> for AccountCompressionError
sourcefn from(_error: &ConcurrentMerkleTreeError) -> Self
fn from(_error: &ConcurrentMerkleTreeError) -> Self
Converts to this type from the input type.
sourceimpl From<AccountCompressionError> for Error
impl From<AccountCompressionError> for Error
sourcefn from(error_code: AccountCompressionError) -> Error
fn from(error_code: AccountCompressionError) -> Error
Converts to this type from the input type.
sourceimpl From<AccountCompressionError> for u32
impl From<AccountCompressionError> for u32
sourcefn from(e: AccountCompressionError) -> u32
fn from(e: AccountCompressionError) -> u32
Converts to this type from the input type.
impl Copy for AccountCompressionError
Auto Trait Implementations
impl RefUnwindSafe for AccountCompressionError
impl Send for AccountCompressionError
impl Sync for AccountCompressionError
impl Unpin for AccountCompressionError
impl UnwindSafe for AccountCompressionError
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