pub enum StorageError {
DataDirectory(DataDirectoryError),
Log(LogError),
Index {
source: Box<MaterializedIndexError>,
},
Mutation(MutationError),
CommittedButNotIndexed {
receipt: CommitReceipt,
source: Box<MaterializedIndexError>,
},
StaleIndex,
Snapshot {
source: Box<SnapshotError>,
},
ManifestGenerationExhausted,
PreparedSegmentNotEmpty {
path: PathBuf,
},
InvalidScanLimit {
requested: usize,
maximum: usize,
},
}Expand description
Failure while opening or operating the durable embedded storage engine.
Variants§
DataDirectory(DataDirectoryError)
The data directory could not be initialized or exclusively locked.
Log(LogError)
The authoritative log rejected or failed an operation.
Index
The rebuildable materialized index failed before a new log commit.
Fields
source: Box<MaterializedIndexError>Rebuildable-index failure.
Mutation(MutationError)
A mutation violates the stable binary codec.
CommittedButNotIndexed
The log commit is durable but its index update failed.
Fields
receipt: CommitReceiptReceipt proving that the log commit succeeded.
source: Box<MaterializedIndexError>Rebuildable-index failure.
StaleIndex
Reads and further writes are blocked after an index update failure.
Snapshot
Snapshot creation or verification failed.
Fields
source: Box<SnapshotError>Underlying snapshot failure.
ManifestGenerationExhausted
The immutable manifest generation space is exhausted.
PreparedSegmentNotEmpty
A prepared compaction segment unexpectedly contains complete frames.
InvalidScanLimit
A KV scan page size is zero or exceeds the hard storage bound.
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
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()