pub enum CacheAction {
Put,
Get,
Mget,
Mput,
Delete,
PutIfNotPresent,
ListPush,
ListPop,
ListLen,
}Expand description
One cache operation, selected by the action header (case-insensitive).
Variants§
Implementations§
Source§impl CacheAction
impl CacheAction
Sourcepub const ALL: [CacheAction; 9]
pub const ALL: [CacheAction; 9]
Every action, in the Java enum’s declaration order (the order the error messages list them in).
Sourcepub fn from_header(action: Option<&str>) -> Result<CacheAction, AppError>
pub fn from_header(action: Option<&str>) -> Result<CacheAction, AppError>
Resolve an action header (case-insensitive) to an action, with a
clear error naming the supported set when it does not match (Java
CacheAction.from).
Trait Implementations§
Source§impl Clone for CacheAction
impl Clone for CacheAction
impl Copy for CacheAction
Source§impl Debug for CacheAction
impl Debug for CacheAction
impl Eq for CacheAction
Source§impl PartialEq for CacheAction
impl PartialEq for CacheAction
impl StructuralPartialEq for CacheAction
Auto Trait Implementations§
impl Freeze for CacheAction
impl RefUnwindSafe for CacheAction
impl Send for CacheAction
impl Sync for CacheAction
impl Unpin for CacheAction
impl UnsafeUnpin for CacheAction
impl UnwindSafe for CacheAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.