#[non_exhaustive]pub enum LoadConfigError {
#[non_exhaustive] SerailizeSchema {
source: Error,
},
#[non_exhaustive] ValidationFailure {
source: ValidationError,
},
#[non_exhaustive] InvalidConfig {
source: Diagnostics,
},
#[non_exhaustive] DeserializeConfig {
source: Error,
},
#[non_exhaustive] ReadConfig {
source: ReadFileError,
},
}Expand description
Error variants for loading config.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]SerailizeSchema
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]ValidationFailure
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
source: ValidationError#[non_exhaustive]InvalidConfig
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
source: Diagnostics#[non_exhaustive]DeserializeConfig
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]ReadConfig
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
source: ReadFileErrorTrait 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 Freeze for LoadConfigError
impl !RefUnwindSafe for LoadConfigError
impl Send for LoadConfigError
impl Sync for LoadConfigError
impl Unpin for LoadConfigError
impl !UnwindSafe for LoadConfigError
Blanket Implementations§
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