pub enum PersistenceError {
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§
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)>
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<ArtifactError> for PersistenceError
impl From<ArtifactError> for PersistenceError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for PersistenceError
impl From<ChecksumError> for PersistenceError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PersistenceError
impl From<Error> for PersistenceError
Auto Trait Implementations§
impl !RefUnwindSafe for PersistenceError
impl !UnwindSafe for PersistenceError
impl Freeze for PersistenceError
impl Send for PersistenceError
impl Sync for PersistenceError
impl Unpin for PersistenceError
impl UnsafeUnpin for PersistenceError
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