pub enum HarnessConfigError {
Toml(Error),
Json(Error),
UnsupportedSchemaVersion(u32),
}Expand description
F7 fix: schema_version previously parsed any u32 silently — a future
(or simply typo’d) version number would be interpreted under TODAY’s
field meanings with no warning at all, exactly the kind of silent
misinterpretation §3.5 step 5’s “fail SAFE” precedent exists to prevent
elsewhere in this migration. Only 1 is understood in P1.
Variants§
Toml(Error)
The document isn’t valid TOML, or doesn’t match the schema.
Json(Error)
The document isn’t valid JSON, or doesn’t match the schema.
UnsupportedSchemaVersion(u32)
The document parsed fine, but named a schema_version this build
doesn’t understand.
Trait Implementations§
Source§impl Debug for HarnessConfigError
impl Debug for HarnessConfigError
Source§impl Display for HarnessConfigError
impl Display for HarnessConfigError
Source§impl Error for HarnessConfigError
impl Error for HarnessConfigError
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 HarnessConfigError
impl !UnwindSafe for HarnessConfigError
impl Freeze for HarnessConfigError
impl Send for HarnessConfigError
impl Sync for HarnessConfigError
impl Unpin for HarnessConfigError
impl UnsafeUnpin for HarnessConfigError
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