pub enum LoadConfigError {
Io(Error),
Parse(String),
Document(String),
Config(String),
}Expand description
Error type for synchronous config loading.
Variants§
Trait Implementations§
Source§impl Debug for LoadConfigError
impl Debug for LoadConfigError
Source§impl Display for LoadConfigError
impl Display for LoadConfigError
Source§impl Error for LoadConfigError
impl Error for LoadConfigError
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 !RefUnwindSafe for LoadConfigError
impl !UnwindSafe for LoadConfigError
impl Freeze for LoadConfigError
impl Send for LoadConfigError
impl Sync for LoadConfigError
impl Unpin for LoadConfigError
impl UnsafeUnpin for LoadConfigError
Blanket Implementations§
impl<T> AnyError for T
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<E> Context<TracedError> for Ewhere
E: AnyError,
impl<E> Context<TracedError> for Ewhere
E: AnyError,
Source§fn context<C>(self, context: C) -> TracedError
fn context<C>(self, context: C) -> TracedError
Adds additional context. This becomes a no-op if the
traced feature is disabled.Source§fn with_context<F, C>(self, context: F) -> TracedError
fn with_context<F, C>(self, context: F) -> TracedError
Lazily adds additional context. This becomes a no-op if the
traced feature is disabled.Source§impl<E1, E2> IntoTraced<TracedError<E2>> for E1
impl<E1, E2> IntoTraced<TracedError<E2>> for E1
Source§fn into_traced(self) -> TracedError<E2>
fn into_traced(self) -> TracedError<E2>
Convert Error to a type containing a
TracedError mapping the underlying typeSource§impl<E> Traced<TracedError<E>> for Ewhere
E: AnyError,
impl<E> Traced<TracedError<E>> for Ewhere
E: AnyError,
Source§fn traced(self) -> TracedError<E>
fn traced(self) -> TracedError<E>
Convert Error to a type containing a
TracedError keeping the underlying typeSource§impl<E> TracedDyn<TracedError> for Ewhere
E: AnyError,
impl<E> TracedDyn<TracedError> for Ewhere
E: AnyError,
Source§fn traced_dyn(self) -> TracedError
fn traced_dyn(self) -> TracedError
Convert Error to
TracedError without caring about the underlying type