pub enum MemoryStoreError {
InvalidBatch(BatchError),
BatchExceedsShardCapacity {
shard_index: usize,
key_count: usize,
capacity: usize,
},
PoisonedShard {
shard_index: usize,
},
}Expand description
A fail-closed in-memory store error.
Variants§
InvalidBatch(BatchError)
The atomic batch violated a backend-independent structural requirement.
BatchExceedsShardCapacity
An atomic batch can never fit in one shard, regardless of expiry.
Fields
PoisonedShard
A shard mutex was poisoned and remains unavailable.
Trait Implementations§
Source§impl Clone for MemoryStoreError
impl Clone for MemoryStoreError
Source§impl Debug for MemoryStoreError
impl Debug for MemoryStoreError
Source§impl Display for MemoryStoreError
impl Display for MemoryStoreError
impl Eq for MemoryStoreError
Source§impl Error for MemoryStoreError
impl Error for MemoryStoreError
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<BatchError> for MemoryStoreError
impl From<BatchError> for MemoryStoreError
Source§fn from(source: BatchError) -> Self
fn from(source: BatchError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryStoreError> for GcraStoreError
impl From<MemoryStoreError> for GcraStoreError
Source§fn from(source: MemoryStoreError) -> Self
fn from(source: MemoryStoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryStoreError
impl PartialEq for MemoryStoreError
impl StructuralPartialEq for MemoryStoreError
Auto Trait Implementations§
impl Freeze for MemoryStoreError
impl RefUnwindSafe for MemoryStoreError
impl Send for MemoryStoreError
impl Sync for MemoryStoreError
impl Unpin for MemoryStoreError
impl UnsafeUnpin for MemoryStoreError
impl UnwindSafe for MemoryStoreError
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