pub enum StorageError {
Show 15 variants
Unhealthy,
Precondition {
path: String,
},
Builder(String),
CorruptLog,
UnsupportedCommandVersion(u32),
OutcomePayload,
Durability(String),
SnapshotExpired {
requested: u64,
oldest: u64,
},
FutureSnapshot {
requested: u64,
visible: u64,
},
ResourceExhausted(String),
InvalidConfiguration(String),
Cancelled,
InvalidRead(String),
ReadersActive,
ConflictHistoryUnavailable {
commit_index: u64,
},
}Expand description
Errors returned by the storage layer: failed preconditions, corrupt or unsupported durable state, resource exhaustion, and invalid read requests.
Variants§
Unhealthy
A poisoned storage lock fenced the store; reopen is required.
Precondition
A transaction precondition was violated; path is the offending key.
Builder(String)
The deterministic expander failed while building a commit.
CorruptLog
A durable record could not be decoded or verified.
UnsupportedCommandVersion(u32)
A log record carries a command version this build does not support.
OutcomePayload
The stored outcome payload is missing or cannot be deserialized.
Durability(String)
The physical backend failed while applying or reading durable state.
SnapshotExpired
The requested snapshot predates the oldest retained commit.
Fields
FutureSnapshot
The requested snapshot is newer than the visible commit index.
Fields
ResourceExhausted(String)
A managed byte budget refused the request.
InvalidConfiguration(String)
The supplied storage configuration is not valid.
Cancelled
A pinned read was cancelled by its caller.
InvalidRead(String)
Scan bounds or batch limits are invalid.
ReadersActive
Physical compaction was requested while protected read views are open.
No conflict summary is retained for a commit that must be probed.
Trait Implementations§
Source§impl Clone for StorageError
impl Clone for StorageError
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
1.30.0 · 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()