CacheInterface

Trait CacheInterface 

Source
pub trait CacheInterface {
    type T: Serialize + DeserializeOwned + Clone + Send + Sync;

    // Required method
    fn load(&self, src_path: impl AsRef<Path>) -> Self::T;
}

Required Associated Types§

Required Methods§

Source

fn load(&self, src_path: impl AsRef<Path>) -> Self::T

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§