pub enum SubOp {
Get,
Set(i64),
Incr(i64),
}Expand description
The three things a BITFIELD subcommand does.
Variants§
Get
GET, which never writes and never creates the key.
Set(i64)
SET, answering the value that was there before.
Incr(i64)
INCRBY, answering the value afterwards.
Trait Implementations§
impl Copy for SubOp
impl Eq for SubOp
impl StructuralPartialEq for SubOp
Auto Trait Implementations§
impl Freeze for SubOp
impl RefUnwindSafe for SubOp
impl Send for SubOp
impl Sync for SubOp
impl Unpin for SubOp
impl UnsafeUnpin for SubOp
impl UnwindSafe for SubOp
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