Skip to main content

PackCache

Trait PackCache 

Source
pub trait PackCache {
    // Required methods
    fn get(&self, key: Key) -> Result<Option<&[u8]>>;
    fn put(&mut self, key: Key, pack: &[u8]) -> Result<()>;
}

Required Methods§

Source

fn get(&self, key: Key) -> Result<Option<&[u8]>>

Source

fn put(&mut self, key: Key, pack: &[u8]) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§