pub enum Error {
NoAuthMethod(Box<Error>, Box<Error>, Box<Error>),
Http(&'static str, Error),
Io(&'static str, Error),
Json(&'static str, Error),
Other(&'static str, Box<dyn Error + Send + Sync>),
Str(&'static str),
}
Expand description
Enumerates all possible errors returned by this library.
Variants§
NoAuthMethod(Box<Error>, Box<Error>, Box<Error>)
No available authentication method was discovered
Application can authenticate against GCP using:
- Default service account - available inside GCP platform using GCP Instance Metadata server
- GCloud authorized user - retrieved using
gcloud auth
command
All authentication methods have been tested and none succeeded. Service account file can be downloaded from GCP in json format.
Http(&'static str, Error)
Could not connect to server
Io(&'static str, Error)
Json(&'static str, Error)
Other(&'static str, Box<dyn Error + Send + Sync>)
Str(&'static str)
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)>
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()
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