Enum rgbwallet::psbt::opret::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 DbcPsbtError
impl From<OpretKeyError> for DbcPsbtError
source§fn from(v: OpretKeyError) -> Self
fn from(v: OpretKeyError) -> Self
Converts to this type from the input type.
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 for OpretKeyError
impl PartialEq 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 for OpretKeyError
impl PartialOrd 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 moreimpl Copy for OpretKeyError
impl Eq for OpretKeyError
impl StructuralEq for OpretKeyError
impl StructuralPartialEq for OpretKeyError
Auto Trait Implementations§
impl RefUnwindSafe for OpretKeyError
impl Send for OpretKeyError
impl Sync for OpretKeyError
impl Unpin for OpretKeyError
impl UnwindSafe for OpretKeyError
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.