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.
Reqwest(Error)
If another network error causes something to fail, this variant is used.
Ssl(ErrorStack)
If we encouter a SSL error, for example an invalid certificate, this variant is used.
Jwt(Error)
If we have problems creating or parsing a json web token, this variant is used.
Serialization(Error)
If we cannot deserialize one of the repsonses sent by Google, this variant is used.
Other(String)
If another failure causes the error, this variant is populated.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
Source§fn from(err: ErrorStack) -> Self
fn from(err: ErrorStack) -> Self
Converts to this type from the input type.
Source§impl From<GoogleErrorResponse> for Error
impl From<GoogleErrorResponse> for Error
Source§fn from(err: GoogleErrorResponse) -> Self
fn from(err: GoogleErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(err: InvalidHeaderValue) -> Self
fn from(err: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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