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§
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>>
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.