[−][src]Enum config::ConfigError
Represents all possible errors that can occur when working with configuration.
Variants
Configuration is frozen and no further mutations can be made.
NotFound(String)
Configuration property was not found
PathParse(ErrorKind)
Configuration path could not be parsed.
Configuration could not be parsed from file.
Fields of FileParse
Value could not be converted into the requested type.
Fields of Type
origin: Option<String>
The URI that references the source that the value came from.
Example: /path/to/config.json
or Environment
or etcd://localhost
unexpected: Unexpected
What we found when parsing the value
expected: &'static str
What was expected when parsing the value
key: Option<String>
The key in the configuration hash of this value (if available where the error is generated).
Message(String)
Custom message
Unadorned error from a foreign origin.
Trait Implementations
impl Debug for ConfigError
[src]
impl Display for ConfigError
[src]
impl Error for ConfigError
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl Error for ConfigError
[src]
impl Error for ConfigError
[src]
fn custom<T: Display>(msg: T) -> Self
[src]
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
fn missing_field(field: &'static str) -> Self
[src]
fn duplicate_field(field: &'static str) -> Self
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,