CommitToCache

Trait CommitToCache 

Source
pub trait CommitToCache: Send + Sync {
    // Required method
    fn __commit_to_cache<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cache: &'life1 Cache,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn commit_to_cache<'life0, 'async_trait, C>(
        self,
        c: &'life0 C,
    ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             C: 'async_trait + HasCache,
             'life0: 'async_trait { ... }
    fn commit_to_cache_ref<'life0, 'life1, 'async_trait, C>(
        &'life0 self,
        c: &'life1 C,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where C: 'async_trait + HasCache,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn commit_to_cache<'life0, 'async_trait, C>( self, c: &'life0 C, ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: Sized + 'async_trait, C: 'async_trait + HasCache, 'life0: 'async_trait,

Source

fn commit_to_cache_ref<'life0, 'life1, 'async_trait, C>( &'life0 self, c: &'life1 C, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where C: 'async_trait + HasCache, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CommitToCache for Channel

Source§

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl CommitToCache for ServerToClientEvent

Source§

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl CommitToCache for Message

Source§

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl CommitToCache for Member

Source§

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl CommitToCache for Server

Source§

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl CommitToCache for User

Source§

fn __commit_to_cache<'life0, 'life1, 'async_trait>( &'life0 self, cache: &'life1 Cache, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§