[][src]Trait dendrite::axon_utils::TokenStore

pub trait TokenStore {
#[must_use]    pub 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
;
#[must_use] pub fn retrieve_token<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Describes a token store.

A token store can be used to persist markers that indicate the last processed event for each event processor.

Required methods

#[must_use]pub 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, 
[src]

#[must_use]pub fn retrieve_token<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...