Enum dbc::tapret::TapretError
source · pub enum TapretError {
KeyEmbedding(TapretKeyError),
NoTaprootOutput,
}
Expand description
Errors during tapret commitment.
Variants§
KeyEmbedding(TapretKeyError)
Error embedding tapret commitment into x-only key.
NoTaprootOutput
tapret commitment in a transaction lacking any taproot outputs.
Trait Implementations§
source§impl Clone for TapretError
impl Clone for TapretError
source§fn clone(&self) -> TapretError
fn clone(&self) -> TapretError
Returns a copy 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 TapretError
impl Debug for TapretError
source§impl<'de> Deserialize<'de> for TapretError
impl<'de> Deserialize<'de> for TapretError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for TapretError
impl Display for TapretError
source§impl Error for TapretError
impl Error for TapretError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<TapretError> for String
impl From<TapretError> for String
source§fn from(err: TapretError) -> Self
fn from(err: TapretError) -> Self
Converts to this type from the input type.
source§impl From<TapretError> for VerifyError
impl From<TapretError> for VerifyError
source§fn from(v: TapretError) -> Self
fn from(v: TapretError) -> Self
Converts to this type from the input type.
source§impl From<TapretKeyError> for TapretError
impl From<TapretKeyError> for TapretError
source§fn from(v: TapretKeyError) -> Self
fn from(v: TapretKeyError) -> Self
Converts to this type from the input type.
source§impl PartialEq for TapretError
impl PartialEq for TapretError
source§fn eq(&self, other: &TapretError) -> bool
fn eq(&self, other: &TapretError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TapretError
impl Serialize for TapretError
impl Eq for TapretError
impl StructuralEq for TapretError
impl StructuralPartialEq for TapretError
Auto Trait Implementations§
impl RefUnwindSafe for TapretError
impl Send for TapretError
impl Sync for TapretError
impl Unpin for TapretError
impl UnwindSafe for TapretError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.