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
sourceimpl Debug for ConfigError
impl Debug for ConfigError
sourceimpl Display for ConfigError
impl Display for ConfigError
sourceimpl Error for ConfigError
impl Error for ConfigError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ConfigError> for LoginError
impl From<ConfigError> for LoginError
sourcefn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
sourceimpl From<ProfileLoadError> for ConfigError
impl From<ProfileLoadError> for ConfigError
sourcefn from(source: ProfileLoadError) -> Self
fn from(source: ProfileLoadError) -> Self
Converts to this type from the input type.
sourceimpl From<ProfileWriteError> for ConfigError
impl From<ProfileWriteError> for ConfigError
sourcefn from(source: ProfileWriteError) -> Self
fn from(source: ProfileWriteError) -> Self
Converts to this type from the input type.
sourceimpl From<UserConfigError> for ConfigError
impl From<UserConfigError> for ConfigError
sourcefn from(source: UserConfigError) -> Self
fn from(source: UserConfigError) -> Self
Converts to this type from the input type.
sourceimpl From<WorkSpaceInfoError> for ConfigError
impl From<WorkSpaceInfoError> for ConfigError
sourcefn 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
sourceimpl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
sourcefn 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.
sourceimpl<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.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
sourcefn 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.
sourcefn 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.
sourceimpl<T> ConvUtil for T
impl<T> ConvUtil for T
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request