Enum psbt::commit::TapretKeyError
source · pub enum TapretKeyError {
OutputAlreadyHasCommitment,
TapretProhibited,
InvalidKeyValue,
}
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.
InvalidKeyValue
The key contains invalid value
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<Error> for TapretKeyError
impl From<Error> for TapretKeyError
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<TapretKeyError> for TapretKeyError
impl PartialEq<TapretKeyError> 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<TapretKeyError> for TapretKeyError
impl PartialOrd<TapretKeyError> 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 more