Enum psbt::commit::OpretKeyError
source · [−]pub enum OpretKeyError {
OutputAlreadyHasCommitment,
NonOpReturnOutput,
OpretProhibited,
}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.
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
sourceimpl Clone for OpretKeyError
impl Clone for OpretKeyError
sourcefn clone(&self) -> OpretKeyError
fn clone(&self) -> OpretKeyError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OpretKeyError
impl Debug for OpretKeyError
sourceimpl Display for OpretKeyError
impl Display for OpretKeyError
sourceimpl Error for OpretKeyError
impl Error for OpretKeyError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<OpretKeyError> for String
impl From<OpretKeyError> for String
sourcefn from(err: OpretKeyError) -> Self
fn from(err: OpretKeyError) -> Self
Converts to this type from the input type.
sourceimpl Hash for OpretKeyError
impl Hash for OpretKeyError
sourceimpl Ord for OpretKeyError
impl Ord for OpretKeyError
sourceimpl PartialEq<OpretKeyError> for OpretKeyError
impl PartialEq<OpretKeyError> for OpretKeyError
sourceimpl PartialOrd<OpretKeyError> for OpretKeyError
impl PartialOrd<OpretKeyError> for OpretKeyError
sourcefn partial_cmp(&self, other: &OpretKeyError) -> Option<Ordering>
fn partial_cmp(&self, other: &OpretKeyError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more