pub enum ChainKeyBatchError {
EmptyBatch,
TooManyLeaves {
found: usize,
max: usize,
},
}Expand description
Rejection before allocating tree or witness material.
Variants§
EmptyBatch
A batch cannot commit an empty set of leaves.
TooManyLeaves
The supplied hashes exceed the host’s explicit construction budget.
Trait Implementations§
Source§impl Debug for ChainKeyBatchError
impl Debug for ChainKeyBatchError
Source§impl Display for ChainKeyBatchError
impl Display for ChainKeyBatchError
impl Eq for ChainKeyBatchError
Source§impl Error for ChainKeyBatchError
impl Error for ChainKeyBatchError
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 PartialEq for ChainKeyBatchError
impl PartialEq for ChainKeyBatchError
impl StructuralPartialEq for ChainKeyBatchError
Auto Trait Implementations§
impl Freeze for ChainKeyBatchError
impl RefUnwindSafe for ChainKeyBatchError
impl Send for ChainKeyBatchError
impl Sync for ChainKeyBatchError
impl Unpin for ChainKeyBatchError
impl UnsafeUnpin for ChainKeyBatchError
impl UnwindSafe for ChainKeyBatchError
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