#[non_exhaustive]pub enum ErrorKind {
NotSignedIn,
Unavailable,
Network,
NotPermitted,
Invalid,
RateLimited,
Rejected,
ServiceFailed,
}Expand description
Why a request failed: the first five are from Hammer, before any reply; the rest are what Response::error makes of a reply’s status.
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.
NotSignedIn
No sync account in this workspace, or its session has ended.
The sync server doesn’t offer the service.
Network
The sync server couldn’t be reached.
NotPermitted
The manifest doesn’t name the service.
Invalid
A refused method or path, or a reply that isn’t text, or isn’t what the service should send.
RateLimited
Too many requests: 429. The sync server allows more after a minute.
Rejected
The service refused the request, such as one too large or in a language it doesn’t check: 4xx.
ServiceFailed
The service failed, or the sync server couldn’t reach it: 5xx.
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