pub enum TaprootBuilderError {
InvalidMerkleTreeDepth(usize),
NodeNotInDfsOrder,
OverCompleteTree,
InvalidInternalKey(Error),
IncompleteTree,
EmptyTree,
}
Expand description
Detailed error type for taproot builder.
Variants§
InvalidMerkleTreeDepth(usize)
Merkle tree depth must not be more than 128.
NodeNotInDfsOrder
Nodes must be added specified in DFS walk order.
OverCompleteTree
Two nodes at depth 0 are not allowed.
InvalidInternalKey(Error)
Invalid taproot internal key.
IncompleteTree
Called finalize on an incomplete tree.
EmptyTree
Called finalize on a empty tree.
Trait Implementations§
Source§impl Clone for TaprootBuilderError
impl Clone for TaprootBuilderError
Source§fn clone(&self) -> TaprootBuilderError
fn clone(&self) -> TaprootBuilderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaprootBuilderError
impl Debug for TaprootBuilderError
Source§impl Display for TaprootBuilderError
impl Display for TaprootBuilderError
Source§impl Error for TaprootBuilderError
Available on crate feature std
only.
impl Error for TaprootBuilderError
Available on crate feature
std
only.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 Hash for TaprootBuilderError
impl Hash for TaprootBuilderError
Source§impl Ord for TaprootBuilderError
impl Ord for TaprootBuilderError
Source§fn cmp(&self, other: &TaprootBuilderError) -> Ordering
fn cmp(&self, other: &TaprootBuilderError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TaprootBuilderError
impl PartialEq for TaprootBuilderError
Source§impl PartialOrd for TaprootBuilderError
impl PartialOrd for TaprootBuilderError
impl Copy for TaprootBuilderError
impl Eq for TaprootBuilderError
impl StructuralPartialEq for TaprootBuilderError
Auto Trait Implementations§
impl Freeze for TaprootBuilderError
impl RefUnwindSafe for TaprootBuilderError
impl Send for TaprootBuilderError
impl Sync for TaprootBuilderError
impl Unpin for TaprootBuilderError
impl UnwindSafe for TaprootBuilderError
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