pub trait MbaCacheStore: Send + Sync {
// Required methods
fn get(&self, k: &CacheKey) -> Option<CacheEntry>;
fn put(&self, k: &CacheKey, e: &CacheEntry);
}Expand description
Where the MBA service keeps answers across calls. bitwright performs no IO: persistent stores belong to the host.
Required Methods§
Sourcefn get(&self, k: &CacheKey) -> Option<CacheEntry>
fn get(&self, k: &CacheKey) -> Option<CacheEntry>
The entry for k.
Sourcefn put(&self, k: &CacheKey, e: &CacheEntry)
fn put(&self, k: &CacheKey, e: &CacheEntry)
Stores an entry.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".