bdkffi::error

Enum PsbtError

Source
pub enum PsbtError {
Show 33 variants InvalidMagic, MissingUtxo, InvalidSeparator, PsbtUtxoOutOfBounds, InvalidKey { key: String, }, InvalidProprietaryKey, DuplicateKey { key: String, }, UnsignedTxHasScriptSigs, UnsignedTxHasScriptWitnesses, MustHaveUnsignedTx, NoMorePairs, UnexpectedUnsignedTx, NonStandardSighashType { sighash: u32, }, InvalidHash { hash: String, }, InvalidPreimageHashPair, CombineInconsistentKeySources { xpub: String, }, ConsensusEncoding { encoding_error: String, }, NegativeFee, FeeOverflow, InvalidPublicKey { error_message: String, }, InvalidSecp256k1PublicKey { secp256k1_error: String, }, InvalidXOnlyPublicKey, InvalidEcdsaSignature { error_message: String, }, InvalidTaprootSignature { error_message: String, }, InvalidControlBlock, InvalidLeafVersion, Taproot, TapTree { error_message: String, }, XPubKey, Version { error_message: String, }, PartialDataConsumption, Io { error_message: String, }, OtherPsbtErr,
}

Variants§

§

InvalidMagic

§

MissingUtxo

§

InvalidSeparator

§

PsbtUtxoOutOfBounds

§

InvalidKey

Fields

§

InvalidProprietaryKey

§

DuplicateKey

Fields

§

UnsignedTxHasScriptSigs

§

UnsignedTxHasScriptWitnesses

§

MustHaveUnsignedTx

§

NoMorePairs

§

UnexpectedUnsignedTx

§

NonStandardSighashType

Fields

§sighash: u32
§

InvalidHash

Fields

§hash: String
§

InvalidPreimageHashPair

§

CombineInconsistentKeySources

Fields

§xpub: String
§

ConsensusEncoding

Fields

§encoding_error: String
§

NegativeFee

§

FeeOverflow

§

InvalidPublicKey

Fields

§error_message: String
§

InvalidSecp256k1PublicKey

Fields

§secp256k1_error: String
§

InvalidXOnlyPublicKey

§

InvalidEcdsaSignature

Fields

§error_message: String
§

InvalidTaprootSignature

Fields

§error_message: String
§

InvalidControlBlock

§

InvalidLeafVersion

§

Taproot

§

TapTree

Fields

§error_message: String
§

XPubKey

§

Version

Fields

§error_message: String
§

PartialDataConsumption

§

Io

Fields

§error_message: String
§

OtherPsbtErr

Trait Implementations§

Source§

impl<UT> ConvertError<UT> for PsbtError

Source§

fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>

Source§

impl Debug for PsbtError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for PsbtError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for PsbtError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<UT> FfiConverter<UT> for PsbtError

Source§

const TYPE_ID_META: MetadataBuffer

Type ID metadata, serialized into a [MetadataBuffer].
Source§

type FfiType = RustBuffer

The low-level type used for passing values of this type over the FFI. Read more
Source§

fn lower(v: Self) -> RustBuffer

Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§

fn try_lift(buf: RustBuffer) -> Result<Self>

Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§

fn write(obj: Self, buf: &mut Vec<u8>)

Write a rust value into a buffer, to send over the FFI in serialized form. Read more
Source§

fn try_read(buf: &mut &[u8]) -> Result<Self>

Read a rust value from a buffer, received over the FFI in serialized form. Read more
Source§

impl From<Error> for PsbtError

Source§

fn from(error: BdkPsbtError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for PsbtError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for PsbtError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl<UT> Lift<UT> for PsbtError

Source§

type FfiType = <PsbtError as FfiConverter<UT>>::FfiType

Source§

fn try_lift(v: Self::FfiType) -> Result<Self>

Source§

fn try_read(buf: &mut &[u8]) -> Result<Self>

§

fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>

Convenience method
Source§

impl<UT> LiftRef<UT> for PsbtError

Source§

impl<UT> LiftReturn<UT> for PsbtError

Source§

type ReturnType = <PsbtError as Lift<UT>>::FfiType

FFI return type for trait interfaces
Source§

fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>

Lift a successfully returned value from a trait interface
§

fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self

Lift a foreign returned value from a trait interface Read more
§

fn lift_error(_buf: RustBuffer) -> Self

Lift a Rust value for a callback interface method error result Read more
§

fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self

Lift a Rust value for an unexpected callback interface error Read more
Source§

impl<UT> Lower<UT> for PsbtError

Source§

type FfiType = <PsbtError as FfiConverter<UT>>::FfiType

Source§

fn lower(obj: Self) -> Self::FfiType

Source§

fn write(obj: Self, buf: &mut Vec<u8>)

§

fn lower_into_rust_buffer(obj: Self) -> RustBuffer

Convenience method
Source§

impl<UT> LowerError<UT> for PsbtError

Source§

fn lower_error(obj: Self) -> RustBuffer

Lower this value for scaffolding function return Read more
Source§

impl<UT> LowerReturn<UT> for PsbtError

Source§

type ReturnType = <PsbtError as Lower<UT>>::FfiType

The type that should be returned by scaffolding functions for this type. Read more
Source§

fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>

Lower the return value from an scaffolding call Read more
§

fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>

Lower the return value for failed argument lifts Read more
Source§

impl<UT> TypeId<UT> for PsbtError

Source§

const TYPE_ID_META: MetadataBuffer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, UT> HandleAlloc<UT> for T
where T: Send + Sync,

§

fn new_handle(value: Arc<T>) -> Handle

Create a new handle for an Arc value Read more
§

unsafe fn clone_handle(handle: Handle) -> Handle

Clone a handle Read more
§

unsafe fn consume_handle(handle: Handle) -> Arc<T>

Consume a handle, getting back the initial Arc<> Read more
§

unsafe fn get_arc(handle: Handle) -> Arc<Self>

Get a clone of the Arc<> using a “borrowed” handle. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V