Skip to main content

CacheProvider

Trait CacheProvider 

Source
pub trait CacheProvider: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn apply(
        &self,
        profile: &CacheProfile,
        backend: &str,
        owned: bool,
    ) -> Result<SpawnDelta, CacheError>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn apply( &self, profile: &CacheProfile, backend: &str, owned: bool, ) -> Result<SpawnDelta, CacheError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§