pub enum StoreError {
Io(Arc<Error>),
Corruption(String),
NotFound,
AlreadyExists,
TxnConflict,
ReadOnly,
Timeout,
CapacityExceeded,
CasMismatch,
KeyNotFound,
Unsupported(String),
Other(String),
}Expand description
Errors that can be returned by any OxiStore backend.
Variants§
Io(Arc<Error>)
An I/O error occurred at the file-system level.
Corruption(String)
The database file is corrupt or in an unrecognized format.
NotFound
The requested key was not found (used when absence is treated as error).
AlreadyExists
A key was inserted but already exists (reserved for unique-insert APIs).
TxnConflict
A write transaction conflicted with a concurrent transaction and must be retried.
ReadOnly
The store is open in read-only mode and does not accept writes.
Timeout
An operation timed out.
CapacityExceeded
A bounded store or cache has exceeded its capacity limit.
CasMismatch
A compare-and-swap operation failed because the expected value did not match the current stored value.
KeyNotFound
The requested key was not found in the store.
Unsupported(String)
The operation is not supported by this backend or configuration.
Other(String)
Any other backend-specific error.
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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()