pub enum ConfigDiscoveryError {
Multiple {
dir: PathBuf,
files: Vec<PathBuf>,
},
Io(Error),
}Expand description
Errors surfaced by MetaConfig::discover_from. Separated out as its own enum
so the CLI can render a tailored message for the multi-file case.
Variants§
Multiple
Two or more recognized config files coexist in the same directory. Returned with the directory and the conflicting paths so the caller can print all of them.
Io(Error)
Anything else that went wrong while walking up the tree.
Trait Implementations§
Source§impl Debug for ConfigDiscoveryError
impl Debug for ConfigDiscoveryError
Source§impl Display for ConfigDiscoveryError
impl Display for ConfigDiscoveryError
Source§impl Error for ConfigDiscoveryError
impl Error for ConfigDiscoveryError
1.30.0 · 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 ConfigDiscoveryError
impl !UnwindSafe for ConfigDiscoveryError
impl Freeze for ConfigDiscoveryError
impl Send for ConfigDiscoveryError
impl Sync for ConfigDiscoveryError
impl Unpin for ConfigDiscoveryError
impl UnsafeUnpin for ConfigDiscoveryError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more