pub trait TransactionCacheAction<A, SC, I>: TransactionCachewhere
    SC: ?Sized + StorageClient + Send + Sync,
    A: StorageAction<SC, I> + Send,{
    // Required method
    fn manage_cache<'life0, 'life1, 'async_trait>(
        &'life0 self,
        transaction_id: SC::TransactionId,
        ok: &'life1 A::Ok
    ) -> Pin<Box<dyn Future<Output = Result<(), <Self as TransactionCache>::Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             SC::TransactionId: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn handle_success<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        storage_client: &'life1 SC,
        ok: &'life2 A::Ok
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

source

fn manage_cache<'life0, 'life1, 'async_trait>( &'life0 self, transaction_id: SC::TransactionId, ok: &'life1 A::Ok ) -> Pin<Box<dyn Future<Output = Result<(), <Self as TransactionCache>::Error>> + Send + 'async_trait>>where Self: Sync + 'async_trait, SC::TransactionId: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

source

fn handle_success<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, storage_client: &'life1 SC, ok: &'life2 A::Ok ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementations on Foreign Types§

source§

impl<A, SC, I, TCA> TransactionCacheAction<A, SC, I> for &TCAwhere SC: ?Sized + StorageClient + Send + Sync, A: StorageAction<SC, I> + Send, TCA: TransactionCacheAction<A, SC, I> + Sync,

source§

fn manage_cache<'life0, 'life1, 'async_trait>( &'life0 self, transaction_id: SC::TransactionId, ok: &'life1 A::Ok ) -> Pin<Box<dyn Future<Output = Result<(), <Self as TransactionCache>::Error>> + Send + 'async_trait>>where Self: Sync + 'async_trait, SC::TransactionId: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl<A, SC, I> TransactionCacheAction<A, SC, I> for ()where SC: ?Sized + StorageClient + Send + Sync, A: StorageAction<SC, I> + Send,

source§

fn manage_cache<'life0, 'life1, 'async_trait>( &'life0 self, _: SC::TransactionId, _: &'life1 A::Ok ) -> Pin<Box<dyn Future<Output = Result<(), <Self as TransactionCache>::Error>> + Send + 'async_trait>>where Self: Sync + 'async_trait, SC::TransactionId: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§