Skip to main content

BitmapCommands

Trait BitmapCommands 

Source
pub trait BitmapCommands: CommandExecutor {
    // Provided methods
    fn bitpos<'life0, 'async_trait, K>(
        &'life0 self,
        key: K,
        bit: u8,
    ) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>
       where K: 'async_trait + ToValkeyArgs + Send,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bitpos_range<'life0, 'async_trait, K>(
        &'life0 self,
        key: K,
        bit: u8,
        start: i64,
        end: i64,
        index_type: Option<BitmapIndexType>,
    ) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>
       where K: 'async_trait + ToValkeyArgs + Send,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bitfield<'life0, 'life1, 'async_trait, K>(
        &'life0 self,
        key: K,
        subcommands: &'life1 [BitFieldSubcommand],
    ) -> Pin<Box<dyn Future<Output = ValkeyResult<Vec<Option<i64>>>> + Send + 'async_trait>>
       where K: 'async_trait + ToValkeyArgs + Send,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn bitfield_readonly<'life0, 'life1, 'async_trait, K>(
        &'life0 self,
        key: K,
        subcommands: &'life1 [BitFieldSubcommand],
    ) -> Pin<Box<dyn Future<Output = ValkeyResult<Vec<Option<i64>>>> + Send + 'async_trait>>
       where K: 'async_trait + ToValkeyArgs + Send,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

Bitmap commands (SETBIT, GETBIT, BITCOUNT, BITPOS, BITOP).

Provided Methods§

Source

fn bitpos<'life0, 'async_trait, K>( &'life0 self, key: K, bit: u8, ) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>
where K: 'async_trait + ToValkeyArgs + Send, Self: Sync + 'async_trait, 'life0: 'async_trait,

Find the position of the first bit set to bit (BITPOS).

Source

fn bitpos_range<'life0, 'async_trait, K>( &'life0 self, key: K, bit: u8, start: i64, end: i64, index_type: Option<BitmapIndexType>, ) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>
where K: 'async_trait + ToValkeyArgs + Send, Self: Sync + 'async_trait, 'life0: 'async_trait,

Find the position of the first bit set to bit within a range (BITPOS key bit start end [BYTE|BIT]).

Source

fn bitfield<'life0, 'life1, 'async_trait, K>( &'life0 self, key: K, subcommands: &'life1 [BitFieldSubcommand], ) -> Pin<Box<dyn Future<Output = ValkeyResult<Vec<Option<i64>>>> + Send + 'async_trait>>
where K: 'async_trait + ToValkeyArgs + Send, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform arbitrary bit-field operations (BITFIELD). Returns one result per non-OVERFLOW subcommand; a None indicates a FAIL overflow.

Source

fn bitfield_readonly<'life0, 'life1, 'async_trait, K>( &'life0 self, key: K, subcommands: &'life1 [BitFieldSubcommand], ) -> Pin<Box<dyn Future<Output = ValkeyResult<Vec<Option<i64>>>> + Send + 'async_trait>>
where K: 'async_trait + ToValkeyArgs + Send, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Read-only bit-field operations (BITFIELD_RO). Only GET subcommands are permitted by the server.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§