Enum confget::defs::ConfgetError
source · #[non_exhaustive]pub enum ConfgetError {
Config(String),
FileFormat(String, Error),
Glob(String, Error),
Internal(String),
ReadData(Error),
Regex(String, Error),
UnknownBackend(String),
}
Expand description
An error that occurred during processing the input data.
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.
Config(String)
Invalid configuration, probably command-line.
FileFormat(String, Error)
Invalid data read from an input file.
Glob(String, Error)
Invalid glob/fnmatch pattern.
Internal(String)
Something went really wrong somewhere.
ReadData(Error)
Could not read the input data.
Regex(String, Error)
Invalid regular expression.
UnknownBackend(String)
Invalid backend type.
Trait Implementations§
source§impl Debug for ConfgetError
impl Debug for ConfgetError
source§impl Display for ConfgetError
impl Display for ConfgetError
source§impl Error for ConfgetError
impl Error for ConfgetError
source§fn 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 · 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 ConfgetError
impl Send for ConfgetError
impl Sync for ConfgetError
impl Unpin for ConfgetError
impl UnwindSafe for ConfgetError
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