pub enum MerkleError {
Crate(&'static str, String),
CRHError(CRHError),
IncorrectLeafIndex(usize),
IncorrectPathLength(usize),
InvalidLeaf,
InvalidPathLength(usize, usize),
InvalidTreeDepth(usize, usize),
Message(String),
}
Variants§
Crate(&'static str, String)
CRHError(CRHError)
IncorrectLeafIndex(usize)
IncorrectPathLength(usize)
InvalidLeaf
InvalidPathLength(usize, usize)
InvalidTreeDepth(usize, usize)
Message(String)
Trait Implementations§
Source§impl Debug for MerkleError
impl Debug for MerkleError
Source§impl Display for MerkleError
impl Display for MerkleError
Source§impl Error for MerkleError
impl Error for MerkleError
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<CRHError> for MerkleError
impl From<CRHError> for MerkleError
Source§impl From<Error> for MerkleError
impl From<Error> for MerkleError
Source§impl From<MerkleError> for DPCError
impl From<MerkleError> for DPCError
Source§fn from(error: MerkleError) -> Self
fn from(error: MerkleError) -> Self
Converts to this type from the input type.
Source§impl From<MerkleError> for LedgerError
impl From<MerkleError> for LedgerError
Source§fn from(error: MerkleError) -> Self
fn from(error: MerkleError) -> Self
Converts to this type from the input type.
Source§impl From<MerkleError> for StorageError
impl From<MerkleError> for StorageError
Source§fn from(error: MerkleError) -> Self
fn from(error: MerkleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MerkleError
impl RefUnwindSafe for MerkleError
impl Send for MerkleError
impl Sync for MerkleError
impl Unpin for MerkleError
impl UnwindSafe for MerkleError
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