pub trait PackCache {
// Required methods
fn get(&self, key: Key) -> Result<Option<&[u8]>>;
fn put(&mut self, key: Key, pack: &[u8]) -> Result<()>;
}Required Methods§
fn get(&self, key: Key) -> Result<Option<&[u8]>>
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".