pub enum Error {
Ureq(Error),
Reqwest(Error),
HttpResponse(u16),
Io(IoError),
NoHeader,
Parsing(ParseIntError),
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
Reqwest(Error)
Error during reqwest HTTP request
HttpResponse(u16)
HTTP response error {0}
Io(IoError)
IO error during ureq response read
NoHeader
no header found in ureq response
Parsing(ParseIntError)
Invalid number returned
Hex(Error)
Invalid Hex data returned
TransactionNotFound(Txid)
transaction {0} not found
HeaderHeightNotFound(u32)
header for block height {0} not found
HeaderHashNotFound(BlockHash)
header for block hash {0} 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<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(v: ParseIntError) -> Self
fn from(v: 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§
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