Trait AppStateStore
Source pub trait AppStateStore: Send + Sync {
// Required methods
fn get_app_state_version<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<HashState, StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn set_app_state_version<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
state: HashState,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn put_app_state_mutation_macs<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: u64,
mutations: &'life2 [AppStateMutationMAC],
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn delete_app_state_mutation_macs<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
index_macs: &'life2 [Vec<u8>],
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_app_state_mutation_mac<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
index_mac: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}