pub enum Error {
JsonRpc(Error),
Hex(HexToBytesError),
Json(Error),
BitcoinSerialization(FromHexError),
Secp256k1(Error),
Io(Error),
InvalidAmount(ParseAmountError),
InvalidCookieFile,
UnexpectedStructure,
ReturnedError(String),
}Expand description
The error type for errors produced in this library.
Variants§
JsonRpc(Error)
Hex(HexToBytesError)
Json(Error)
BitcoinSerialization(FromHexError)
Secp256k1(Error)
Io(Error)
InvalidAmount(ParseAmountError)
InvalidCookieFile
UnexpectedStructure
The JSON result had an unexpected structure.
ReturnedError(String)
The daemon returned an error string.
Trait Implementations§
Source§impl BitcoinRpcErrorExt for Error
impl BitcoinRpcErrorExt for Error
Source§fn is_not_found(&self) -> bool
fn is_not_found(&self) -> bool
Whether this error indicates that the tx was not found.
Source§fn is_in_utxo_set(&self) -> bool
fn is_in_utxo_set(&self) -> bool
Whether this error indicates that the tx is already in the utxo set.
fn is_already_in_mempool(&self) -> bool
Source§impl BitcoindRpcErrorExt for Error
impl BitcoindRpcErrorExt for Error
Source§fn is_not_found_error(&self) -> bool
fn is_not_found_error(&self) -> bool
Returns whether the error is a “not found” error. Read more
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(e: FromHexError) -> Error
fn from(e: FromHexError) -> Error
Converts to this type from the input type.
Source§impl From<HexToBytesError> for Error
impl From<HexToBytesError> for Error
Source§fn from(e: HexToBytesError) -> Error
fn from(e: HexToBytesError) -> Error
Converts to this type from the input type.
Source§impl From<ParseAmountError> for Error
impl From<ParseAmountError> for Error
Source§fn from(e: ParseAmountError) -> Error
fn from(e: ParseAmountError) -> Error
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§
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> 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> 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.