CacheManagerReadThroughExt

Trait CacheManagerReadThroughExt 

Source
pub trait CacheManagerReadThroughExt<B, S, M> {
    // Required method
    fn read_through<K, V, L>(
        self,
        loader: L,
        options: CacheOptions,
    ) -> ReadThroughCache<B, S, M, K, V, L>
       where B: CacheBackend + DependencyBackend,
             S: Serializer,
             M: CacheMetrics,
             L: Loader<K, V>,
             K: CacheKey + Clone + Send + Sync + 'static,
             V: Serialize + DeserializeOwned + Send + Sync + Clone + 'static;
}

Required Methods§

Source

fn read_through<K, V, L>( self, loader: L, options: CacheOptions, ) -> ReadThroughCache<B, S, M, K, V, L>
where B: CacheBackend + DependencyBackend, S: Serializer, M: CacheMetrics, L: Loader<K, V>, K: CacheKey + Clone + Send + Sync + 'static, V: Serialize + DeserializeOwned + Send + Sync + Clone + 'static,

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.

Implementors§