pub enum SnapshotError {
Show 14 variants
Io(Error),
Serialize(Error),
ArchiveGenerationFailure(ExitStatus),
StoragePathSymlinkInvalid,
UnpackError(UnpackError),
IoWithSource(Error, &'static str),
IoWithSourceAndFile(Error, &'static str, PathBuf),
PathToFileNameError(PathBuf),
FileNameToStrError(PathBuf),
ParseSnapshotArchiveFileNameError(String),
MismatchedBaseSlot(Slot, Slot),
NoSnapshotArchives,
MismatchedSlotHash((Slot, SnapshotHash), (Slot, SnapshotHash)),
VerifySlotDeltas(VerifySlotDeltasError),
}
Variants§
Io(Error)
Serialize(Error)
ArchiveGenerationFailure(ExitStatus)
StoragePathSymlinkInvalid
UnpackError(UnpackError)
IoWithSource(Error, &'static str)
IoWithSourceAndFile(Error, &'static str, PathBuf)
PathToFileNameError(PathBuf)
FileNameToStrError(PathBuf)
ParseSnapshotArchiveFileNameError(String)
MismatchedBaseSlot(Slot, Slot)
NoSnapshotArchives
MismatchedSlotHash((Slot, SnapshotHash), (Slot, SnapshotHash))
VerifySlotDeltas(VerifySlotDeltasError)
Trait Implementations§
source§impl Debug for SnapshotError
impl Debug for SnapshotError
source§impl Display for SnapshotError
impl Display for SnapshotError
source§impl Error for SnapshotError
impl Error for SnapshotError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 SnapshotError
impl From<Error> for SnapshotError
source§impl From<UnpackError> for SnapshotError
impl From<UnpackError> for SnapshotError
source§fn from(source: UnpackError) -> Self
fn from(source: UnpackError) -> Self
Converts to this type from the input type.
source§impl From<VerifySlotDeltasError> for SnapshotError
impl From<VerifySlotDeltasError> for SnapshotError
source§fn from(source: VerifySlotDeltasError) -> Self
fn from(source: VerifySlotDeltasError) -> Self
Converts to this type from the input type.