Enum google_gmail1::client::Error [−][src]
pub enum Error {
HttpError(Error),
UploadSizeLimitExceeded(u64, u64),
BadRequest(ErrorResponse),
MissingAPIKey,
MissingToken(Error),
Cancelled,
FieldClash(&'static str),
JsonDecodeError(String, Error),
Failure(Response<Body>),
Io(Error),
}
Variants
HttpError(Error)
The http connection failed
Tuple Fields of HttpError
0: Error
An attempt was made to upload a resource with size stored in field .0
even though the maximum upload size is what is stored in field .1
.
BadRequest(ErrorResponse)
Represents information about a request that was not understood by the server. Details are included.
Tuple Fields of BadRequest
We needed an API key for authentication, but didn’t obtain one. Neither through the authenticator, nor through the Delegate.
MissingToken(Error)
We required a Token, but didn’t get one from the Authenticator
Tuple Fields of MissingToken
0: Error
The delgate instructed to cancel the operation
FieldClash(&'static str)
An additional, free form field clashed with one of the built-in optional ones
Tuple Fields of FieldClash
0: &'static str
Shows that we failed to decode the server response. This can happen if the protocol changes in conjunction with strict json decoding.
Indicates an HTTP repsonse with a non-success status code
Io(Error)
An IO error occurred while reading a stream into memory
Tuple Fields of Io
0: Error
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more