#[non_exhaustive]pub enum ErrorKind {
Show 13 variants
Network,
Timeout,
Unauthorized,
Forbidden,
NotFound,
Server,
Cancelled,
MalformedResponse,
Transport,
SignIn,
PassphraseRequired,
InvalidPassphrase,
Crypto,
}Expand description
What went wrong, without the details. Mirrors the TS RedseatErrorKind.
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.
Network
The server or the cloud could not be reached.
Timeout
No answer in time.
401: missing, expired or refused credentials.
Forbidden
NotFound
Server
5xx.
Cancelled
The caller cancelled the operation.
MalformedResponse
The answer could not be read (not JSON, wrong shape…).
Transport
Any other transport failure, or a client that lacks what the call needs.
SignIn
The Google sign-in failed (refused consent, wrong state, token exchange error).
PassphraseRequired
An encrypted library needs its passphrase first.
InvalidPassphrase
The passphrase does not decrypt the library.
Crypto
Encrypted data could not be decrypted.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.