pub enum Error {
ConfigurationDirectoryNotFound,
ConfigurationStoreNotFound(PathBuf),
DeleteActiveConfiguration,
LoadingProperties(Error),
ExistingConfiguration(String),
InvalidName(String),
Io(Error),
NoConfigurationsFound(PathBuf),
SavingProperties(Error),
UnknownConfiguration(String),
}Expand description
gcloud-ctx error
Variants§
ConfigurationDirectoryNotFound
The configuration directory was not found within the configuration store directory
ConfigurationStoreNotFound(PathBuf)
Unable to find the gcloud configuration root directory
DeleteActiveConfiguration
Attempted to delete the active configuration
LoadingProperties(Error)
Error loading properties from a configuration
ExistingConfiguration(String)
The operation would overwrite an existing configuration
InvalidName(String)
The configuration name is invalid
Io(Error)
General I/O error
NoConfigurationsFound(PathBuf)
Not configurations were found in the configuration store
SavingProperties(Error)
Error saving properties to a configuration
UnknownConfiguration(String)
A configuration with the given name wasn’t found
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()
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