Enum esplora_client::Error
source · [−]pub enum Error {
Ureq(Error),
UreqTransport(Transport),
Reqwest(Error),
HttpResponse(u16),
Io(Error),
NoHeader,
Parsing(ParseIntError),
BitcoinEncoding(Error),
Hex(Error),
TransactionNotFound(Txid),
HeaderHeightNotFound(u32),
HeaderHashNotFound(BlockHash),
}
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
Reqwest(Error)
Error during reqwest HTTP request
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 Error for Error
impl Error for Error
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
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<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more