pub enum ArtifactLoadError {
Read {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
message: String,
},
UnsupportedSchemaVersion {
path: PathBuf,
found: u64,
supported: u64,
},
MissingSchemaVersion {
path: PathBuf,
},
InvalidSchemaVersionType {
path: PathBuf,
},
Validation {
path: PathBuf,
message: String,
},
}Expand description
Errors returned when loading and validating run artifacts from disk.
Variants§
Read
The file could not be read from disk.
Parse
JSON parsing or schema-shape decoding failed.
Fields
UnsupportedSchemaVersion
schema_version did not match this binary’s supported version.
Fields
MissingSchemaVersion
Required top-level schema_version key was missing.
InvalidSchemaVersionType
Top-level schema_version existed but was not an integer.
Validation
Additional validation rejected the artifact contents.
Trait Implementations§
Source§impl Debug for ArtifactLoadError
impl Debug for ArtifactLoadError
Source§impl Display for ArtifactLoadError
impl Display for ArtifactLoadError
Source§impl Error for ArtifactLoadError
impl Error for ArtifactLoadError
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 Freeze for ArtifactLoadError
impl !RefUnwindSafe for ArtifactLoadError
impl Send for ArtifactLoadError
impl Sync for ArtifactLoadError
impl Unpin for ArtifactLoadError
impl UnsafeUnpin for ArtifactLoadError
impl !UnwindSafe for ArtifactLoadError
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