pub enum ConfigError {
ConfigRead {
path: PathBuf,
source: Error,
},
ConfigParse {
path: PathBuf,
canonical: Option<PathBuf>,
source: Error,
},
PathResolve {
path: PathBuf,
source: Error,
},
Validation,
RuleSet(RoutingError),
}Variants§
ConfigRead
The config TOML file could not be read from disk.
ConfigParse
The config TOML file was read, but could not be parsed.
PathResolve
A path on disk could not be resolved.
Validation
Startup-time validation failed — each individual failure is already logged at its call site.
RuleSet(RoutingError)
A rule-set file failed to load or parse. Wraps the routing crate’s error type.
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 From<RoutingError> for ConfigError
impl From<RoutingError> for ConfigError
Source§fn from(source: RoutingError) -> Self
fn from(source: RoutingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigError
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
impl !UnwindSafe for ConfigError
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