Enum rgbwallet::psbt::tapret::TapretKeyError
source · pub enum TapretKeyError {
OutputAlreadyHasCommitment,
TapretProhibited,
InvalidProof,
NotTaprootOutput,
}Expand description
Errors processing tapret-related proprietary PSBT keys and their values.
Variants§
OutputAlreadyHasCommitment
output already contains commitment; there must be a single commitment per output.
TapretProhibited
the output is not marked to host tapret commitments. Please first set PSBT_OUT_TAPRET_HOST flag.
InvalidProof
the provided tapret proof is invalid: it has a script longer than 64KiB.
NotTaprootOutput
the provided output is not a taproot output and can’t host a tapret commitment.
Trait Implementations§
source§impl Clone for TapretKeyError
impl Clone for TapretKeyError
source§fn clone(&self) -> TapretKeyError
fn clone(&self) -> TapretKeyError
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 TapretKeyError
impl Debug for TapretKeyError
source§impl Display for TapretKeyError
impl Display for TapretKeyError
source§impl Error for TapretKeyError
impl Error for TapretKeyError
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<TapretKeyError> for DbcPsbtError
impl From<TapretKeyError> for DbcPsbtError
source§fn from(v: TapretKeyError) -> Self
fn from(v: TapretKeyError) -> Self
Converts to this type from the input type.
source§impl From<TapretKeyError> for String
impl From<TapretKeyError> for String
source§fn from(err: TapretKeyError) -> Self
fn from(err: TapretKeyError) -> Self
Converts to this type from the input type.
source§impl Hash for TapretKeyError
impl Hash for TapretKeyError
source§impl Ord for TapretKeyError
impl Ord for TapretKeyError
source§fn cmp(&self, other: &TapretKeyError) -> Ordering
fn cmp(&self, other: &TapretKeyError) -> 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 TapretKeyError
impl PartialEq for TapretKeyError
source§fn eq(&self, other: &TapretKeyError) -> bool
fn eq(&self, other: &TapretKeyError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TapretKeyError
impl PartialOrd for TapretKeyError
source§fn partial_cmp(&self, other: &TapretKeyError) -> Option<Ordering>
fn partial_cmp(&self, other: &TapretKeyError) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for TapretKeyError
impl Eq for TapretKeyError
impl StructuralEq for TapretKeyError
impl StructuralPartialEq for TapretKeyError
Auto Trait Implementations§
impl RefUnwindSafe for TapretKeyError
impl Send for TapretKeyError
impl Sync for TapretKeyError
impl Unpin for TapretKeyError
impl UnwindSafe for TapretKeyError
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.