Enum dbc::tapret::TapretTreeError
source · [−]pub enum TapretTreeError {
StrictEncoding(Error),
TapTree(TaprootBuilderError),
TreeBuilder(IncompleteTapTree),
MaxDepthExceeded,
IncompleteTree(TaprootScriptTree),
InvalidPartnerProof(u8, TapretNodePartner),
}Expand description
Errors during tapret commitment embedding into tapscript tree.
Variants
StrictEncoding(Error)
the provided commitment data can’t be strict encoded. Details: {0}
TapTree(TaprootBuilderError)
unable to update tap tree with the commitment. Details: {0}
TreeBuilder(IncompleteTapTree)
the taproot script tree is invalid. Details: {0}
MaxDepthExceeded
the tapret commitment is impossible since the taproot script tree already has the maximal depth.
IncompleteTree(TaprootScriptTree)
the provided taproot script tree has no revealed nodes to prove the commitment.
InvalidPartnerProof(u8, TapretNodePartner)
unable to add an invalid tapret node partner information {1} to the merkle path proof at the level {0}.
Trait Implementations
sourceimpl Clone for TapretTreeError
impl Clone for TapretTreeError
sourcefn clone(&self) -> TapretTreeError
fn clone(&self) -> TapretTreeError
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 more
sourceimpl Debug for TapretTreeError
impl Debug for TapretTreeError
sourceimpl Display for TapretTreeError
impl Display for TapretTreeError
sourceimpl Error for TapretTreeError
impl Error for TapretTreeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for TapretTreeError
impl From<Error> for TapretTreeError
sourceimpl From<IncompleteTapTree> for TapretTreeError
impl From<IncompleteTapTree> for TapretTreeError
sourcefn from(v: IncompleteTapTree) -> Self
fn from(v: IncompleteTapTree) -> Self
Converts to this type from the input type.
sourceimpl From<MaxDepthExceeded> for TapretTreeError
impl From<MaxDepthExceeded> for TapretTreeError
sourcefn from(v: MaxDepthExceeded) -> Self
fn from(v: MaxDepthExceeded) -> Self
Converts to this type from the input type.
sourceimpl From<TapretTreeError> for String
impl From<TapretTreeError> for String
sourcefn from(err: TapretTreeError) -> Self
fn from(err: TapretTreeError) -> Self
Converts to this type from the input type.
sourceimpl From<TapretTreeError> for TapretError
impl From<TapretTreeError> for TapretError
sourcefn from(v: TapretTreeError) -> Self
fn from(v: TapretTreeError) -> Self
Converts to this type from the input type.
sourceimpl From<TaprootBuilderError> for TapretTreeError
impl From<TaprootBuilderError> for TapretTreeError
sourcefn from(v: TaprootBuilderError) -> Self
fn from(v: TaprootBuilderError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TapretTreeError> for TapretTreeError
impl PartialEq<TapretTreeError> for TapretTreeError
sourcefn eq(&self, other: &TapretTreeError) -> bool
fn eq(&self, other: &TapretTreeError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TapretTreeError) -> bool
fn ne(&self, other: &TapretTreeError) -> bool
This method tests for !=.
impl Eq for TapretTreeError
impl StructuralEq for TapretTreeError
impl StructuralPartialEq for TapretTreeError
Auto Trait Implementations
impl RefUnwindSafe for TapretTreeError
impl Send for TapretTreeError
impl Sync for TapretTreeError
impl Unpin for TapretTreeError
impl UnwindSafe for TapretTreeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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