pub enum ControlBlocksError {
Missing,
Multiple(usize),
Parse(HexToBytesError),
Decode(TaprootError),
}Expand description
Error when converting the control blocks vector.
Variants§
Missing
No control block returned by Core for this script.
Multiple(usize)
Multiple control blocks returned by Core for this script.
Parse(HexToBytesError)
Failed to parse control block hex string.
Decode(TaprootError)
Failed to decode parsed bytes.
Trait Implementations§
Source§impl Debug for ControlBlocksError
impl Debug for ControlBlocksError
Source§impl Display for ControlBlocksError
impl Display for ControlBlocksError
Source§impl Error for ControlBlocksError
Available on crate feature std only.
impl Error for ControlBlocksError
Available on crate feature
std only.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()
Auto Trait Implementations§
impl Freeze for ControlBlocksError
impl RefUnwindSafe for ControlBlocksError
impl Send for ControlBlocksError
impl Sync for ControlBlocksError
impl Unpin for ControlBlocksError
impl UnsafeUnpin for ControlBlocksError
impl UnwindSafe for ControlBlocksError
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