pub enum BitcoinError {
Show 43 variants
SigningError,
TaprootError(String),
SignatureConversionError,
InvalidSighash,
InvalidPublicKey(String),
InvalidPrivateKey,
InvalidScript(String),
InvalidAddress(String),
InsufficientFunds,
TransactionNotFound,
BlockNotFound,
NetworkError(String),
Wallet(String),
Lightning(String),
DLC(String),
Secp256k1Error(String),
Other(String),
AssetAlreadyIssued,
TaprootBuilderError(TaprootBuilderError),
InvalidSecretKey,
InvalidWitness,
HexDecodingError,
KeyConversionError,
IOError(String),
KeyError(String),
InvalidTransaction(String),
ValidationError(String),
InvalidSignature(String),
EncodingError(String),
ScriptError(String),
InvalidOracleSignature,
P2wpkhError(String),
InvalidContract(String),
WalletNotFound(String),
InvalidWallet(String),
TransactionError(String),
InvalidConfiguration(String),
StorageError(String),
SerializationError(String),
AuthenticationError(String),
InternalError(String),
ConfigError(String),
KeyDerivation(String),
}Expand description
Bitcoin operation errors
Variants§
SigningError
TaprootError(String)
SignatureConversionError
InvalidSighash
InvalidPublicKey(String)
InvalidPrivateKey
InvalidScript(String)
InvalidAddress(String)
InsufficientFunds
TransactionNotFound
BlockNotFound
NetworkError(String)
Wallet(String)
Lightning(String)
DLC(String)
Secp256k1Error(String)
Other(String)
AssetAlreadyIssued
TaprootBuilderError(TaprootBuilderError)
InvalidSecretKey
InvalidWitness
HexDecodingError
KeyConversionError
IOError(String)
KeyError(String)
InvalidTransaction(String)
ValidationError(String)
InvalidSignature(String)
EncodingError(String)
ScriptError(String)
InvalidOracleSignature
P2wpkhError(String)
InvalidContract(String)
WalletNotFound(String)
InvalidWallet(String)
TransactionError(String)
InvalidConfiguration(String)
StorageError(String)
SerializationError(String)
AuthenticationError(String)
InternalError(String)
ConfigError(String)
KeyDerivation(String)
Trait Implementations§
Source§impl Clone for BitcoinError
impl Clone for BitcoinError
Source§fn clone(&self) -> BitcoinError
fn clone(&self) -> BitcoinError
Returns a duplicate 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 BitcoinError
impl Debug for BitcoinError
Source§impl Display for BitcoinError
impl Display for BitcoinError
Source§impl Error for BitcoinError
impl Error for BitcoinError
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<BitcoinError> for AnyaError
Available on crate feature rust-bitcoin only.
impl From<BitcoinError> for AnyaError
Available on crate feature
rust-bitcoin only.Source§fn from(err: BitcoinError) -> Self
fn from(err: BitcoinError) -> Self
Converts to this type from the input type.
Source§impl From<BitcoinError> for ApiError
impl From<BitcoinError> for ApiError
Source§fn from(source: BitcoinError) -> Self
fn from(source: BitcoinError) -> Self
Converts to this type from the input type.
Source§impl From<BitcoinError> for TaprootError
impl From<BitcoinError> for TaprootError
Source§fn from(e: BitcoinError) -> Self
fn from(e: BitcoinError) -> Self
Converts to this type from the input type.
Source§impl From<BitcoinError> for ValidationError
impl From<BitcoinError> for ValidationError
Source§fn from(source: BitcoinError) -> Self
fn from(source: BitcoinError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BitcoinError
impl From<Error> for BitcoinError
Source§impl From<FromHexError> for BitcoinError
impl From<FromHexError> for BitcoinError
Source§fn from(_: FromHexError) -> Self
fn from(_: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromSliceError> for BitcoinError
impl From<FromSliceError> for BitcoinError
Source§fn from(_: FromSliceError) -> Self
fn from(_: FromSliceError) -> Self
Converts to this type from the input type.
Source§impl From<P2wpkhError> for BitcoinError
impl From<P2wpkhError> for BitcoinError
Source§fn from(err: P2wpkhError) -> Self
fn from(err: P2wpkhError) -> Self
Converts to this type from the input type.
Source§impl From<SigFromSliceError> for BitcoinError
impl From<SigFromSliceError> for BitcoinError
Source§fn from(_: SigFromSliceError) -> Self
fn from(_: SigFromSliceError) -> Self
Converts to this type from the input type.
Source§impl From<TaprootBuilder> for BitcoinError
impl From<TaprootBuilder> for BitcoinError
Source§fn from(_: TaprootBuilder) -> Self
fn from(_: TaprootBuilder) -> Self
Converts to this type from the input type.
Source§impl From<TaprootBuilderError> for BitcoinError
impl From<TaprootBuilderError> for BitcoinError
Source§fn from(err: TaprootBuilderError) -> Self
fn from(err: TaprootBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<TaprootError> for BitcoinError
impl From<TaprootError> for BitcoinError
Source§fn from(error: TaprootError) -> Self
fn from(error: TaprootError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BitcoinError
impl RefUnwindSafe for BitcoinError
impl Send for BitcoinError
impl Sync for BitcoinError
impl Unpin for BitcoinError
impl UnwindSafe for BitcoinError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.