pub trait CacheStore:
Send
+ Sync
+ Debug {
// Required methods
fn get(&self, key: &[u8]) -> Option<Cow<'_, [u8]>>;
fn insert(&self, key: &[u8], value: Vec<u8>) -> bool;
}Available on crate features
cranelift and incremental-cache only.Expand description
Implementation of an incremental compilation’s key/value cache store.
In theory, this could just be Cranelift’s CacheKvStore trait, but it is not as we want to
make sure that wasmtime isn’t too tied to Cranelift internals (and as a matter of fact, we
can’t depend on the Cranelift trait here).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".