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),
}
Available on crate feature
esplora
only.Expand description
Errors that can happen during a sync with Esplora
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§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for Error
impl From<Error> for Error
source§fn from(other: EsploraError) -> Self
fn from(other: EsploraError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
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