Enum cipherstash_client::config::errors::ConfigError
source · pub enum ConfigError {
UserConfigError(UserConfigError),
ProfileLoadError(ProfileLoadError),
ProfileWriteError(ProfileWriteError),
InvalidConfigError(String),
InternalError(String),
MissingConfigDirError(PathBuf),
HomeDirError(String),
CredentialsError(String),
ConsoleError(WorkSpaceInfoError),
OtherError(String),
}Expand description
Errors that occur while building or loading config.
Variants§
UserConfigError(UserConfigError)
Errors that occur while loading user-level config from {cs_config_path}/config.json.
ProfileLoadError(ProfileLoadError)
Errors that occur while loading a profile from profile-config.json.
ProfileWriteError(ProfileWriteError)
Errors that occur while writing a profile to profile-config.json.
InvalidConfigError(String)
Errors caused by invalid configuration provided by the user.
InternalError(String)
Errors caused by a bug in internal library code. These should be fixed/reported if they occur.
MissingConfigDirError(PathBuf)
Errors caused when a CS config directory is expected, but can’t be found.
HomeDirError(String)
Error caused when the home directory can’t be resolved
CredentialsError(String)
Error caused when fetching credentials fails
ConsoleError(WorkSpaceInfoError)
Error caused when a request to Console fails
OtherError(String)
Trait Implementations§
source§impl Debug for ConfigError
impl Debug for ConfigError
source§impl Display for ConfigError
impl Display for ConfigError
source§impl Error for ConfigError
impl Error for ConfigError
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()
source§impl From<ConfigError> for LoginError
impl From<ConfigError> for LoginError
source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
source§impl From<ProfileLoadError> for ConfigError
impl From<ProfileLoadError> for ConfigError
source§fn from(source: ProfileLoadError) -> Self
fn from(source: ProfileLoadError) -> Self
Converts to this type from the input type.
source§impl From<ProfileWriteError> for ConfigError
impl From<ProfileWriteError> for ConfigError
source§fn from(source: ProfileWriteError) -> Self
fn from(source: ProfileWriteError) -> Self
Converts to this type from the input type.
source§impl From<UserConfigError> for ConfigError
impl From<UserConfigError> for ConfigError
source§fn from(source: UserConfigError) -> Self
fn from(source: UserConfigError) -> Self
Converts to this type from the input type.
source§impl From<WorkSpaceInfoError> for ConfigError
impl From<WorkSpaceInfoError> for ConfigError
source§fn from(source: WorkSpaceInfoError) -> Self
fn from(source: WorkSpaceInfoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject with the default scheme.
source§fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject with a specific scheme.
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
source§fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
Convert the subject to a given type.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request