pub enum ConfigError {
Parse(String),
Version(String),
Missing(String),
Type(String),
Invalid(String),
Bounded(Bound, String),
Unknown(String),
Part(&'static str, String),
}Expand description
Carries a translation key and a detail (usually the config path), never display text.
Variants§
Parse(String)
Version(String)
Missing(String)
Type(String)
Invalid(String)
Bounded(Bound, String)
Invalid at a path, with the limit it broke where a shared reader knows it: the same key and detail as
Invalid (and equal to it), so that a front end that does not look at the limit shows what it always did.
Unknown(String)
A key that the machine’s default config does not have.
Part(&'static str, String)
A value refused for a reason with a message of its own: the translation key, and the value’s name (a part name that the catalogue does not have, under the key for its kind; a pose the machine cannot reach, at its path).
Implementations§
Trait Implementations§
Source§impl Clone for ConfigError
impl Clone for ConfigError
Source§fn clone(&self) -> ConfigError
fn clone(&self) -> ConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl PartialEq for ConfigError
Errors are equal when key and detail are: what every test and front end goes by, so Bounded equals Invalid.
impl PartialEq for ConfigError
Errors are equal when key and detail are: what every test and front end goes by, so Bounded equals Invalid.
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