pub enum MemoryStoreConfigError {
ZeroMaxKeys,
ZeroShardCount,
MoreShardsThanKeys {
shard_count: usize,
max_keys: usize,
},
ZeroExpiredRemovalLimit,
ZeroBatchSize,
}Expand description
Invalid in-memory store configuration.
Variants§
ZeroMaxKeys
The global key capacity was zero.
ZeroShardCount
The shard count was zero.
MoreShardsThanKeys
A shard count greater than the global capacity was requested.
ZeroExpiredRemovalLimit
The bounded cleanup work limit was zero.
ZeroBatchSize
The accepted batch size was zero.
Trait Implementations§
Source§impl Clone for MemoryStoreConfigError
impl Clone for MemoryStoreConfigError
Source§impl Debug for MemoryStoreConfigError
impl Debug for MemoryStoreConfigError
Source§impl Display for MemoryStoreConfigError
impl Display for MemoryStoreConfigError
impl Eq for MemoryStoreConfigError
Source§impl Error for MemoryStoreConfigError
impl Error for MemoryStoreConfigError
1.30.0 · 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 PartialEq for MemoryStoreConfigError
impl PartialEq for MemoryStoreConfigError
impl StructuralPartialEq for MemoryStoreConfigError
Auto Trait Implementations§
impl Freeze for MemoryStoreConfigError
impl RefUnwindSafe for MemoryStoreConfigError
impl Send for MemoryStoreConfigError
impl Sync for MemoryStoreConfigError
impl Unpin for MemoryStoreConfigError
impl UnsafeUnpin for MemoryStoreConfigError
impl UnwindSafe for MemoryStoreConfigError
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