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§
fn get(&self, key: Key) -> Result<Option<&[u8]>, Error>
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".