Enum tame_index::error::HttpError
source · pub enum HttpError {
Reqwest(Error),
StatusCode {
code: StatusCode,
msg: &'static str,
},
Http(Error),
Timeout,
}Expand description
Errors related to HTTP requests or responses
Variants§
Reqwest(Error)
StatusCode
A status code was received that indicates user error, or possibly a remote index that does not follow the protocol supported by this crate
Http(Error)
Timeout
Unable to complete an async request for an AsyncRemoteSparseIndex within
the user allotted time
Trait Implementations§
source§impl Error for HttpError
impl Error for HttpError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl !UnwindSafe for HttpError
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