#[non_exhaustive]pub enum ErrorKind {
Invalid,
Http,
Rejected,
Timeout,
Backend,
Worker,
Dataset,
Frontier,
Cancelled,
}Expand description
Classification of a failure, so callers can branch without matching on messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid
The input was invalid: a malformed URL, request or configuration.
Http
The transfer failed, or the remote answered with a status worth
retrying, such as 429 or 503.
Rejected
The remote refused the request in a way retrying won’t fix, such as
404 or 403.
Timeout
The operation timed out.
Backend
A backend failed, e.g. while connecting or driving a browser.
Worker
A worker or handler failed.
Dataset
Reading from or writing to a dataset failed.
Frontier
Reading from or writing to the frontier failed.
Cancelled
The operation was cancelled.
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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