Error

Enum Error 

Source
pub enum Error {
Show 26 variants Esplora(String), Hex(String), Protocol(String), Key(ParsePublicKeyError), Address(String), Sighash(TaprootError), ElSighash(Error), Secp(Error), HTTP(String), JSON(Error), IO(Error), Bolt11(ParseOrSemanticError), LiquidEncode(Error), BitcoinEncode(Error), Blind(String), ConfidentialTx(ConfidentialTxOutError), BIP32(Error), BIP39(Error), BIP85(Error), Hash(FromSliceError), Locktime(String), Url(ParseError), Taproot(String), Musig2(String), Generic(String), HTTPStatusNotSuccess(StatusCode, Value),
}
Expand description

The Global Error enum. Encodes all possible internal library errors

Variants§

§

Esplora(String)

§

Hex(String)

§

Protocol(String)

§

Key(ParsePublicKeyError)

§

Address(String)

§

Sighash(TaprootError)

§

ElSighash(Error)

§

Secp(Error)

§

HTTP(String)

§

JSON(Error)

§

IO(Error)

§

Bolt11(ParseOrSemanticError)

§

LiquidEncode(Error)

§

BitcoinEncode(Error)

§

Blind(String)

§

ConfidentialTx(ConfidentialTxOutError)

§

BIP32(Error)

§

BIP39(Error)

§

BIP85(Error)

§

Hash(FromSliceError)

§

Locktime(String)

§

Url(ParseError)

§

Taproot(String)

§

Musig2(String)

§

Generic(String)

§

HTTPStatusNotSuccess(StatusCode, Value)

Implementations§

Source§

impl Error

Source

pub fn name(&self) -> String

Source

pub fn message(&self) -> String

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl From<AddressError> for Error

Source§

fn from(value: AddressError) -> Self

Converts to this type from the input type.
Source§

impl From<BlindError> for Error

Source§

fn from(value: BlindError) -> Self

Converts to this type from the input type.
Source§

impl From<ConfidentialTxOutError> for Error

Source§

fn from(value: ConfidentialTxOutError) -> Self

Converts to this type from the input type.
Source§

impl From<ConversionError> for Error

Source§

fn from(value: ConversionError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromHexError> for Error

Source§

fn from(value: FromHexError) -> Self

Converts to this type from the input type.
Source§

impl From<FromSliceError> for Error

Source§

fn from(value: FromSliceError) -> Self

Converts to this type from the input type.
Source§

impl From<HexToArrayError> for Error

Source§

fn from(value: HexToArrayError) -> Self

Converts to this type from the input type.
Source§

impl From<HexToBytesError> for Error

Source§

fn from(value: HexToBytesError) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidTweakErr> for Error

Source§

fn from(value: InvalidTweakErr) -> Self

Converts to this type from the input type.
Source§

impl From<OutOfRangeError> for Error

Source§

fn from(value: OutOfRangeError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for Error

Source§

fn from(value: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for Error

Source§

fn from(value: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for Error

Source§

fn from(value: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseOrSemanticError> for Error

Source§

fn from(value: ParseOrSemanticError) -> Self

Converts to this type from the input type.
Source§

impl From<ParsePublicKeyError> for Error

Source§

fn from(value: ParsePublicKeyError) -> Self

Converts to this type from the input type.
Source§

impl From<TaprootBuilderError> for Error

Source§

fn from(value: TaprootBuilderError) -> Self

Converts to this type from the input type.
Source§

impl From<TaprootBuilderError> for Error

Source§

fn from(value: TaprootBuilderError) -> Self

Converts to this type from the input type.
Source§

impl From<TaprootError> for Error

Source§

fn from(value: TaprootError) -> Self

Converts to this type from the input type.
Source§

impl From<TaprootError> for Error

Source§

fn from(value: TaprootError) -> Self

Converts to this type from the input type.
Source§

impl From<TaprootError> for Error

Source§

fn from(value: TaprootError) -> Self

Converts to this type from the input type.
Source§

impl From<UnblindError> for Error

Source§

fn from(value: UnblindError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
§

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

§

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

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

§

fn to_string(&self) -> String

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

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,