pub enum ConfigEditError {
NoEditableSource,
AmbiguousSource(Vec<ConfigSource>),
RefusesExternalInclude {
path: PathBuf,
},
IncludeIfNotSatisfied,
SectionNotFound {
section: String,
subsection: Option<String>,
},
Parse(String),
Locked {
path: PathBuf,
},
Io(Error),
}Expand description
Source-aware config planning/apply errors.
Variants§
NoEditableSource
AmbiguousSource(Vec<ConfigSource>)
RefusesExternalInclude
IncludeIfNotSatisfied
SectionNotFound
Parse(String)
Locked
Io(Error)
Trait Implementations§
Source§impl Debug for ConfigEditError
impl Debug for ConfigEditError
Source§impl Display for ConfigEditError
impl Display for ConfigEditError
Source§impl Error for ConfigEditError
impl Error for ConfigEditError
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 ConfigEditError
impl !UnwindSafe for ConfigEditError
impl Freeze for ConfigEditError
impl Send for ConfigEditError
impl Sync for ConfigEditError
impl Unpin for ConfigEditError
impl UnsafeUnpin for ConfigEditError
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