pub enum CheckpointParityError {
Io(Error),
Json(Error),
SafeTensors(SafeTensorError),
Observation(ObservationError),
Parity(ParityError),
InvalidArtifact {
path: PathBuf,
message: String,
},
}Expand description
Invalid checkpoint evidence or parity policy.
Variants§
Io(Error)
Artifact I/O failed.
Json(Error)
Artifact JSON is invalid.
SafeTensors(SafeTensorError)
SafeTensors data is invalid or incomplete.
Observation(ObservationError)
Portable observation data is invalid.
Parity(ParityError)
General comparison failed before a report could be produced.
InvalidArtifact
A required checkpoint artifact field is absent or malformed.
Trait Implementations§
Source§impl Debug for CheckpointParityError
impl Debug for CheckpointParityError
Source§impl Display for CheckpointParityError
impl Display for CheckpointParityError
Source§impl Error for CheckpointParityError
impl Error for CheckpointParityError
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()
Source§impl From<Error> for CheckpointParityError
impl From<Error> for CheckpointParityError
Source§impl From<Error> for CheckpointParityError
impl From<Error> for CheckpointParityError
Source§impl From<ObservationError> for CheckpointParityError
impl From<ObservationError> for CheckpointParityError
Source§fn from(source: ObservationError) -> Self
fn from(source: ObservationError) -> Self
Converts to this type from the input type.
Source§impl From<ParityError> for CheckpointParityError
impl From<ParityError> for CheckpointParityError
Source§fn from(source: ParityError) -> Self
fn from(source: ParityError) -> Self
Converts to this type from the input type.
Source§impl From<SafeTensorError> for CheckpointParityError
impl From<SafeTensorError> for CheckpointParityError
Source§fn from(source: SafeTensorError) -> Self
fn from(source: SafeTensorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CheckpointParityError
impl !UnwindSafe for CheckpointParityError
impl Freeze for CheckpointParityError
impl Send for CheckpointParityError
impl Sync for CheckpointParityError
impl Unpin for CheckpointParityError
impl UnsafeUnpin for CheckpointParityError
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