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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".