pub enum DbcPsbtError {
NoHostOutput,
NoProperOutput(CloseMethod),
AlreadyPresent,
TxOutputsModifiable,
Mpc(MpcPsbtError),
Tapret(TapretKeyError),
Opret(OpretKeyError),
}Expand description
Errors processing DBC-related proprietary PSBT keys and their values.
Variants§
NoHostOutput
the first output valid for a DBC commitment is not marked as a commitment host.
NoProperOutput(CloseMethod)
the transactions contains no output valid for {0} DBC commitment.
AlreadyPresent
DBC commitment is already present.
TxOutputsModifiable
transaction outputs are marked as modifiable, thus deterministic bitcoin commitment can’t be created.
Mpc(MpcPsbtError)
MPC PSBT error
Tapret(TapretKeyError)
Tapret key error
Opret(OpretKeyError)
Opret key error
Trait Implementations§
Source§impl Clone for DbcPsbtError
impl Clone for DbcPsbtError
Source§fn clone(&self) -> DbcPsbtError
fn clone(&self) -> DbcPsbtError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DbcPsbtError
impl Debug for DbcPsbtError
Source§impl Display for DbcPsbtError
impl Display for DbcPsbtError
impl Eq for DbcPsbtError
Source§impl Error for DbcPsbtError
impl Error for DbcPsbtError
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<DbcPsbtError> for String
impl From<DbcPsbtError> for String
Source§fn from(err: DbcPsbtError) -> Self
fn from(err: DbcPsbtError) -> Self
Converts to this type from the input type.
Source§impl From<DbcPsbtError> for CommitError
impl From<DbcPsbtError> for CommitError
Source§fn from(v: DbcPsbtError) -> Self
fn from(v: DbcPsbtError) -> Self
Converts to this type from the input type.
Source§impl From<MpcPsbtError> for DbcPsbtError
impl From<MpcPsbtError> for DbcPsbtError
Source§fn from(v: MpcPsbtError) -> Self
fn from(v: MpcPsbtError) -> Self
Converts to this type from the input type.
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<TapretKeyError> for DbcPsbtError
impl From<TapretKeyError> for DbcPsbtError
Source§fn from(v: TapretKeyError) -> Self
fn from(v: TapretKeyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DbcPsbtError
impl PartialEq for DbcPsbtError
impl StructuralPartialEq for DbcPsbtError
Auto Trait Implementations§
impl Freeze for DbcPsbtError
impl RefUnwindSafe for DbcPsbtError
impl Send for DbcPsbtError
impl Sync for DbcPsbtError
impl Unpin for DbcPsbtError
impl UnsafeUnpin for DbcPsbtError
impl UnwindSafe for DbcPsbtError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.