pub enum SetResult {
Ok,
OutOfMemory,
Blocked,
}Expand description
Result of a set operation that may fail under memory pressure.
Variants§
Ok
The key was stored successfully.
OutOfMemory
Memory limit reached and eviction policy is NoEviction.
Blocked
NX/XX condition was not met (key existed for NX, or didn’t for XX).
Trait Implementations§
impl Eq for SetResult
impl StructuralPartialEq for SetResult
Auto Trait Implementations§
impl Freeze for SetResult
impl RefUnwindSafe for SetResult
impl Send for SetResult
impl Sync for SetResult
impl Unpin for SetResult
impl UnsafeUnpin for SetResult
impl UnwindSafe for SetResult
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