Enum rustis::commands::BitFieldSubCommand  
source · pub enum BitFieldSubCommand<E = &'static str, O = &'static str>where
    E: SingleArg,
    O: SingleArg,{
    Get(BitFieldGetSubCommand<E, O>),
    Set(E, O, u64),
    IncrBy(E, O, i64),
    Overflow(BitFieldOverflow),
}Expand description
Sub-command for the bitfield command
Variants§
Implementations§
source§impl<E, O> BitFieldSubCommand<E, O>where
    E: SingleArg,
    O: SingleArg,
 
impl<E, O> BitFieldSubCommand<E, O>where E: SingleArg, O: SingleArg,
sourcepub fn set(encoding: E, offset: O, value: u64) -> Self
 
pub fn set(encoding: E, offset: O, value: u64) -> Self
Set the specified bit field and returns its old value.
sourcepub fn incr_by(encoding: E, offset: O, increment: i64) -> Self
 
pub fn incr_by(encoding: E, offset: O, increment: i64) -> Self
Increments or decrements (if a negative increment is given) the specified bit field and returns the new value.
pub fn overflow(overflow: BitFieldOverflow) -> Self
Trait Implementations§
source§impl<E, O> ToArgs for BitFieldSubCommand<E, O>where
    E: SingleArg,
    O: SingleArg,
 
impl<E, O> ToArgs for BitFieldSubCommand<E, O>where E: SingleArg, O: SingleArg,
source§fn write_args(&self, args: &mut CommandArgs)
 
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl<E, O> RefUnwindSafe for BitFieldSubCommand<E, O>where E: RefUnwindSafe, O: RefUnwindSafe,
impl<E, O> Send for BitFieldSubCommand<E, O>where E: Send, O: Send,
impl<E, O> Sync for BitFieldSubCommand<E, O>where E: Sync, O: Sync,
impl<E, O> Unpin for BitFieldSubCommand<E, O>where E: Unpin, O: Unpin,
impl<E, O> UnwindSafe for BitFieldSubCommand<E, O>where E: UnwindSafe, O: UnwindSafe,
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