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

If the error is caused by a non 2xx response by Google, this variant is returned.

Tuple Fields of Google

0: GoogleErrorResponse
Reqwest(Error)

If another network error causes something to fail, this variant is used.

Tuple Fields of Reqwest

0: Error

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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