pub enum PersistenceError {
Show 13 variants
LayoutChanged {
path: PathBuf,
},
InvalidRestoreReferences {
path: PathBuf,
},
RestoreReference(RestoreReferenceError),
Io(Error),
Json(Error),
RecordTooLarge {
limit: u64,
},
Artifact(ArtifactError),
Checksum(ChecksumError),
ArtifactCommitPathMismatch {
temporary: String,
canonical: String,
},
ArtifactCommitPathConflict {
temporary: String,
canonical: String,
},
ArtifactCommitPathMissing {
temporary: String,
canonical: String,
},
ArtifactCommitUnsupportedPlatform {
platform: &'static str,
},
UnsupportedArtifactEntry {
path: String,
kind: String,
},
}Expand description
Typed local persistence failure.
Variants§
LayoutChanged
An existing layout path no longer denotes the held directory.
InvalidRestoreReferences
A retained dependency document or journal location has an unsafe entry type.
RestoreReference(RestoreReferenceError)
Restore dependency validation or an immutable retention transition failed.
Io(Error)
Filesystem IO failed; publication may require local reconciliation.
Json(Error)
JSON encoding or decoding failed.
RecordTooLarge
A machine record exceeds its caller-selected byte bound.
Artifact(ArtifactError)
Artifact traversal or streaming failed.
Checksum(ChecksumError)
Verified bytes do not match the expected checksum.
ArtifactCommitPathMismatch
Publication requires distinct siblings in one directory.
ArtifactCommitPathConflict
Both staging and canonical trees exist; neither is overwritten.
ArtifactCommitPathMissing
Neither expected tree exists.
ArtifactCommitUnsupportedPlatform
Atomic no-replace directory publication is unsupported.
UnsupportedArtifactEntry
Publication found an unsafe tree entry.
Trait Implementations§
Source§impl Debug for PersistenceError
impl Debug for PersistenceError
Source§impl Display for PersistenceError
impl Display for PersistenceError
Source§impl Error for PersistenceError
impl Error for PersistenceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()