pub enum ErrorKind {
IO,
Json,
UrlParsing,
Request,
Response,
HexDecoding,
MismatchedScopes,
MismatchedState,
LocalServer,
NoAuthorizationCode,
}
Expand description
Types of errors that can happen during usage.
Variants§
IO
Errors related to IO operations like reading or writing to files.
Json
Errors related to serializing or deserializing structs to and from JSON.
UrlParsing
Errors related to the construction of an URL.
Request
Errors related to request operations like sending GET or POST requests or getting the body of a response.
Response
A request to the Google Drive API returned an error response.
HexDecoding
Error during the decoding of the SHA-256 hash required for the creation of a
code verifier
.
MismatchedScopes
The scopes
in an AccessToken
do not match those required for an operation.
MismatchedState
An authorization request
sent to the Google Drive API returned different state
to the one originally sent.
LocalServer
A created LocalServer
was unable to listen for requests.
NoAuthorizationCode
An authorization request did not include the code
query element required for authentication.
Trait Implementations§
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 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
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
key
and return true
if they are equal.