Enum cloud_storage::Error [−][src]
pub enum Error {
Google(GoogleErrorResponse),
Reqwest(Error),
Ssl(ErrorStack),
Jwt(Error),
Serialization(Error),
Other(String),
}
Expand description
Represents any of the ways storing something in Google Cloud Storage can fail.
Variants
Google(GoogleErrorResponse)
If the error is caused by a non 2xx response by Google, this variant is returned.
Tuple Fields of Google
Reqwest(Error)
If another network error causes something to fail, this variant is used.
Tuple Fields of Reqwest
0: Error
Ssl(ErrorStack)
If we encouter a SSL error, for example an invalid certificate, this variant is used.
Tuple Fields of Ssl
0: ErrorStack
Jwt(Error)
If we have problems creating or parsing a json web token, this variant is used.
Tuple Fields of Jwt
0: Error
Serialization(Error)
If we cannot deserialize one of the repsonses sent by Google, this variant is used.
Tuple Fields of Serialization
0: Error
Other(String)
If another failure causes the error, this variant is populated.
Tuple Fields of Other
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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