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§
fn name(&self) -> &'static str
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".