#[non_exhaustive]pub enum ErrorKind {
Show 13 variants
RateLimited,
BudgetSpent,
Network,
Timeout,
Server,
NotCached,
CircuitOpen,
KeyRejected,
NotFound,
BadRequest,
Unsupported,
Decode,
InvalidId,
}Expand description
Exactly what went wrong, for front ends that word or localise it
themselves. Finer than ErrorCategory; new kinds may be added.
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.
RateLimited
BudgetSpent
The provider’s usage budget is spent until it resets.
Network
Timeout
Server
The provider answered with a server error.
NotCached
Offline, and not in the cache.
CircuitOpen
Skipped after repeated failures, for a cooldown.
KeyRejected
The API key (or other credential) was rejected.
NotFound
BadRequest
Unsupported
Decode
The answer couldn’t be understood.
InvalidId
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move 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