Skip to main content

PackCache

Trait PackCache 

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

Required Methods§

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§