pub enum ConfigError {
Io {
source: Error,
},
Parse {
source: Error,
},
MissingHome,
}Expand description
Errors from configuration operations.
Variants§
Io
Config file I/O error.
Parse
Config file parse error.
MissingHome
Home-directory environment variables are unavailable.
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)>
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 ErrorCompat for ConfigError
impl ErrorCompat for ConfigError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<ConfigError> for AnytypeGrpcError
impl From<ConfigError> for AnytypeGrpcError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl<__T0> IntoError<ConfigError> for IoSnafu<__T0>
impl<__T0> IntoError<ConfigError> for IoSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl<__T0> IntoError<ConfigError> for ParseSnafu<__T0>
impl<__T0> IntoError<ConfigError> for ParseSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Source§impl IntoError<ConfigError> for MissingHomeSnafu
impl IntoError<ConfigError> for MissingHomeSnafu
Source§fn into_error(self, error: Self::Source) -> ConfigError
fn into_error(self, error: Self::Source) -> ConfigError
Combine the information to produce the error
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl !UnwindSafe for ConfigError
impl Freeze for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
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