Trait TransactionCounterTrait

Source
pub trait TransactionCounterTrait {
    // Required methods
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        relayer_id: &'life1 str,
        address: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_and_increment<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        relayer_id: &'life1 str,
        address: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn decrement<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        relayer_id: &'life1 str,
        address: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn set<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        relayer_id: &'life1 str,
        address: &'life2 str,
        value: u64,
    ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, relayer_id: &'life1 str, address: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_and_increment<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, relayer_id: &'life1 str, address: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn decrement<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, relayer_id: &'life1 str, address: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, relayer_id: &'life1 str, address: &'life2 str, value: u64, ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§