Enum bitcoin_scripts::taproot::DfsTraversalError  
source · [−]pub enum DfsTraversalError {
    PathNotExists(DfsPath),
    HiddenNode {
        node_hash: TapNodeHash,
        failed_path: DfsPath,
        path_leftover: DfsPath,
    },
    LeafNode {
        leaf_script: LeafScript,
        failed_path: DfsPath,
        path_leftover: DfsPath,
    },
}Expand description
Error happening when a provided DFS path does not exist within a known part of a tree.
Variants
PathNotExists(DfsPath)
the provided DFS path {0} does not exist within a given tree.
HiddenNode
Fields
node_hash: TapNodeHashThe hash of the hidden node found during the path traversal.
failed_path: DfsPathThe path segment which leads to the hidden node.
path_leftover: DfsPathThe path segment which was not able to traverse after the hidden node.
the provided DFS path traverses hidden node {node_hash} at {failed_path} to {path_leftover}.
LeafNode
Fields
leaf_script: LeafScriptThe hash of the leaf script of a leaf node found during the path traversal.
failed_path: DfsPathThe path segment which leads to the leaf node.
path_leftover: DfsPathThe path segment which was not able to traverse after the leaf node.
the provided DFS path traverses leaf node {leaf_script} at {failed_path} to {path_leftover}.
Trait Implementations
sourceimpl Clone for DfsTraversalError
 
impl Clone for DfsTraversalError
sourcefn clone(&self) -> DfsTraversalError
 
fn clone(&self) -> DfsTraversalError
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 DfsTraversalError
 
impl Debug for DfsTraversalError
sourceimpl Display for DfsTraversalError
 
impl Display for DfsTraversalError
sourceimpl Error for DfsTraversalError
 
impl Error for DfsTraversalError
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<DfsTraversalError> for InstillError
 
impl From<DfsTraversalError> for InstillError
sourcefn from(v: DfsTraversalError) -> Self
 
fn from(v: DfsTraversalError) -> Self
Converts to this type from the input type.
sourceimpl From<DfsTraversalError> for CutError
 
impl From<DfsTraversalError> for CutError
sourcefn from(v: DfsTraversalError) -> Self
 
fn from(v: DfsTraversalError) -> Self
Converts to this type from the input type.
sourceimpl From<DfsTraversalError> for String
 
impl From<DfsTraversalError> for String
sourcefn from(err: DfsTraversalError) -> Self
 
fn from(err: DfsTraversalError) -> Self
Converts to this type from the input type.
sourceimpl Hash for DfsTraversalError
 
impl Hash for DfsTraversalError
sourceimpl Ord for DfsTraversalError
 
impl Ord for DfsTraversalError
sourceimpl PartialEq<DfsTraversalError> for DfsTraversalError
 
impl PartialEq<DfsTraversalError> for DfsTraversalError
sourcefn eq(&self, other: &DfsTraversalError) -> bool
 
fn eq(&self, other: &DfsTraversalError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DfsTraversalError) -> bool
 
fn ne(&self, other: &DfsTraversalError) -> bool
This method tests for !=.
sourceimpl PartialOrd<DfsTraversalError> for DfsTraversalError
 
impl PartialOrd<DfsTraversalError> for DfsTraversalError
sourcefn partial_cmp(&self, other: &DfsTraversalError) -> Option<Ordering>
 
fn partial_cmp(&self, other: &DfsTraversalError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for DfsTraversalError
impl StructuralEq for DfsTraversalError
impl StructuralPartialEq for DfsTraversalError
Auto Trait Implementations
impl RefUnwindSafe for DfsTraversalError
impl Send for DfsTraversalError
impl Sync for DfsTraversalError
impl Unpin for DfsTraversalError
impl UnwindSafe for DfsTraversalError
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