pub enum OpretKeyError {
OutputAlreadyHasCommitment,
NonOpReturnOutput,
OpretProhibited,
NoCommitment,
InvalidCommitment,
InvalidOpReturnScript,
}
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.
NoCommitment
the output contains no valid opret commitment.
InvalidCommitment
the value of opret commitment has invalid length.
InvalidOpReturnScript
the script format doesn’t match requirements for opret commitment.
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)>
Returns 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) -> DbcPsbtError
fn from(v: OpretKeyError) -> DbcPsbtError
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§impl PartialOrd for OpretKeyError
impl PartialOrd for OpretKeyError
impl Copy for OpretKeyError
impl Eq for OpretKeyError
impl StructuralPartialEq for OpretKeyError
Auto Trait Implementations§
impl Freeze for OpretKeyError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.