LazySortedSetStore

Trait LazySortedSetStore 

Source
pub trait LazySortedSetStore: Send + Sync {
    // Required methods
    fn get_next<'life0, 'async_trait>(
        &'life0 self,
        set_id: u64,
        value: Option<OrderedFloat<f64>>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<(OrderedFloat<f64>, isize)>, IndexError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_value_count<'life0, 'async_trait>(
        &'life0 self,
        set_id: u64,
        value: OrderedFloat<f64>,
    ) -> Pin<Box<dyn Future<Output = Result<isize, IndexError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn increment_value_count<'life0, 'async_trait>(
        &'life0 self,
        set_id: u64,
        value: OrderedFloat<f64>,
        delta: isize,
    ) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_next<'life0, 'async_trait>( &'life0 self, set_id: u64, value: Option<OrderedFloat<f64>>, ) -> Pin<Box<dyn Future<Output = Result<Option<(OrderedFloat<f64>, isize)>, IndexError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_value_count<'life0, 'async_trait>( &'life0 self, set_id: u64, value: OrderedFloat<f64>, ) -> Pin<Box<dyn Future<Output = Result<isize, IndexError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn increment_value_count<'life0, 'async_trait>( &'life0 self, set_id: u64, value: OrderedFloat<f64>, delta: isize, ) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§