Trait dendrite_auth::dendrite::axon_utils::TokenStore
source · pub trait TokenStore {
// Required methods
fn store_token<'life0, 'async_trait>(
&'life0 self,
token: i64
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn retrieve_token<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Describes a token store.
A token store can be used to persist markers that indicate the last processed event for each event processor.