Enum psbt::commit::OpretKeyError
source · pub enum OpretKeyError {
OutputAlreadyHasCommitment,
NonOpReturnOutput,
OpretProhibited,
}
Expand description
Errors processing opret-related proprietary PSBT keys and their values.
Variants§
OutputAlreadyHasCommitment
output already contains commitment; there must be a single commitment per output.
NonOpReturnOutput
the output can’t host a commitment since it does not contain OP_RETURN script
OpretProhibited
the output is not marked to host opret commitments. Please first set PSBT_OUT_OPRET_HOST flag.
Trait Implementations§
source§impl Clone for OpretKeyError
impl Clone for OpretKeyError
source§fn clone(&self) -> OpretKeyError
fn clone(&self) -> OpretKeyError
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 OpretKeyError
impl Debug for OpretKeyError
source§impl Display for OpretKeyError
impl Display for OpretKeyError
source§impl Error for OpretKeyError
impl Error for OpretKeyError
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<OpretKeyError> for String
impl From<OpretKeyError> for String
source§fn from(err: OpretKeyError) -> Self
fn from(err: OpretKeyError) -> Self
Converts to this type from the input type.
source§impl Hash for OpretKeyError
impl Hash for OpretKeyError
source§impl Ord for OpretKeyError
impl Ord for OpretKeyError
source§fn cmp(&self, other: &OpretKeyError) -> Ordering
fn cmp(&self, other: &OpretKeyError) -> 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<OpretKeyError> for OpretKeyError
impl PartialEq<OpretKeyError> for OpretKeyError
source§fn eq(&self, other: &OpretKeyError) -> bool
fn eq(&self, other: &OpretKeyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OpretKeyError> for OpretKeyError
impl PartialOrd<OpretKeyError> for OpretKeyError
source§fn partial_cmp(&self, other: &OpretKeyError) -> Option<Ordering>
fn partial_cmp(&self, other: &OpretKeyError) -> 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