#[repr(u32)]pub enum KeySpecFlag {
ReadOnly = 1,
ReadWrite = 2,
Overwrite = 4,
Remove = 8,
Access = 16,
Update = 32,
Insert = 64,
Delete = 128,
NotKey = 256,
Incomplete = 512,
VariableFlags = 1_024,
}
Variants§
ReadOnly = 1
Read-Only. Reads the value of the key, but doesn’t necessarily return it.
ReadWrite = 2
Read-Write. Modifies the data stored in the value of the key or its metadata.
Overwrite = 4
Overwrite. Overwrites the data stored in the value of the key.
Remove = 8
Deletes the key.
Access = 16
Returns, copies or uses the user data from the value of the key.
Update = 32
Updates data to the value, new value may depend on the old value.
Insert = 64
Adds data to the value with no chance of modification or deletion of existing data.
Delete = 128
Explicitly deletes some content from the value of the key.
NotKey = 256
The key is not actually a key, but should be routed in cluster mode as if it was a key.
Incomplete = 512
The keyspec might not point out all the keys it should cover.
VariableFlags = 1_024
Some keys might have different flags depending on arguments.
Trait Implementations§
Source§impl Clone for KeySpecFlag
impl Clone for KeySpecFlag
Source§fn clone(&self) -> KeySpecFlag
fn clone(&self) -> KeySpecFlag
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeySpecFlag
impl Debug for KeySpecFlag
Source§impl Hash for KeySpecFlag
impl Hash for KeySpecFlag
Source§impl Ord for KeySpecFlag
impl Ord for KeySpecFlag
Source§fn cmp(&self, other: &KeySpecFlag) -> Ordering
fn cmp(&self, other: &KeySpecFlag) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeySpecFlag
impl PartialEq for KeySpecFlag
Source§impl PartialOrd for KeySpecFlag
impl PartialOrd for KeySpecFlag
impl Copy for KeySpecFlag
impl Eq for KeySpecFlag
impl StructuralPartialEq for KeySpecFlag
Auto Trait Implementations§
impl Freeze for KeySpecFlag
impl RefUnwindSafe for KeySpecFlag
impl Send for KeySpecFlag
impl Sync for KeySpecFlag
impl Unpin for KeySpecFlag
impl UnwindSafe for KeySpecFlag
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