pub enum PayloadStoreError {
Missing {
hash: ObjectHash,
path: PathBuf,
},
ContentMismatch {
expected: ObjectHash,
actual: ObjectHash,
path: PathBuf,
},
FileIo {
operation: &'static str,
path: PathBuf,
source: Error,
},
AtomicFile {
path: PathBuf,
source: WriteError<FileError>,
},
LocalFile(FileError),
Database {
hash: ObjectHash,
source: Error,
},
SizeConversion {
hash: ObjectHash,
source: TryFromIntError,
},
Storage {
hash: ObjectHash,
error: String,
},
InlineContentMismatch {
expected: ObjectHash,
actual: ObjectHash,
},
CompressionIo {
hash: ObjectHash,
source: Error,
},
CompressionFrame {
hash: ObjectHash,
source: Error,
},
}Variants§
Missing
A payload a caller holds the hash of is not in the spool. The row naming it and the file it names have gone out of step, which no flow may recover from by reading something else.
ContentMismatch
FileIo
AtomicFile
LocalFile(FileError)
Database
SizeConversion
Storage
InlineContentMismatch
CompressionIo
CompressionFrame
Trait Implementations§
Source§impl Debug for PayloadStoreError
impl Debug for PayloadStoreError
Source§impl Display for PayloadStoreError
impl Display for PayloadStoreError
Source§impl Error for PayloadStoreError
impl Error for PayloadStoreError
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<FileError> for PayloadStoreError
impl From<FileError> for PayloadStoreError
Source§impl From<PayloadStoreError> for DbError
impl From<PayloadStoreError> for DbError
Source§fn from(source: PayloadStoreError) -> Self
fn from(source: PayloadStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PayloadStoreError
impl !RefUnwindSafe for PayloadStoreError
impl Send for PayloadStoreError
impl Sync for PayloadStoreError
impl Unpin for PayloadStoreError
impl UnsafeUnpin for PayloadStoreError
impl !UnwindSafe for PayloadStoreError
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