Enum bdk::blockchain::esplora::EsploraError
source · [−]pub enum EsploraError {
Ureq(Error),
UreqTransport(Transport),
HttpResponse(u16),
Io(Error),
NoHeader,
Parsing(ParseIntError),
BitcoinEncoding(Error),
Hex(Error),
TransactionNotFound(Txid),
HeaderHeightNotFound(u32),
HeaderHashNotFound(BlockHash),
}
This is supported on crate feature
esplora
only.Expand description
Errors that can happen during a sync with EsploraBlockchain
Variants
Ureq(Error)
Error during ureq HTTP request
UreqTransport(Transport)
Transport error during the ureq HTTP call
HttpResponse(u16)
HTTP response error
Io(Error)
IO error during ureq response read
NoHeader
No header found in ureq response
Parsing(ParseIntError)
Invalid number returned
BitcoinEncoding(Error)
Invalid Bitcoin data returned
Hex(Error)
Invalid Hex data returned
TransactionNotFound(Txid)
Transaction not found
HeaderHeightNotFound(u32)
Header height not found
HeaderHashNotFound(BlockHash)
Header hash not found
Trait Implementations
sourceimpl Debug for EsploraError
impl Debug for EsploraError
sourceimpl Display for EsploraError
impl Display for EsploraError
sourceimpl Error for EsploraError
impl Error for EsploraError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for EsploraError
impl From<Error> for EsploraError
sourceimpl From<EsploraError> for Error
impl From<EsploraError> for Error
sourcefn from(other: EsploraError) -> Self
fn from(other: EsploraError) -> Self
Performs the conversion.
sourceimpl From<ParseIntError> for EsploraError
impl From<ParseIntError> for EsploraError
sourcefn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for EsploraError
impl Send for EsploraError
impl Sync for EsploraError
impl Unpin for EsploraError
impl !UnwindSafe for EsploraError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more