AppStateKeyStore

Trait AppStateKeyStore 

Source
pub trait AppStateKeyStore: Send + Sync {
    // Required methods
    fn get_app_state_sync_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key_id: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Option<AppStateSyncKey>, StoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn set_app_state_sync_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key_id: &'life1 [u8],
        key: AppStateSyncKey,
    ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn get_app_state_sync_key<'life0, 'life1, 'async_trait>( &'life0 self, key_id: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Option<AppStateSyncKey>, StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Source

fn set_app_state_sync_key<'life0, 'life1, 'async_trait>( &'life0 self, key_id: &'life1 [u8], key: AppStateSyncKey, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§