Skip to main content

MbaCacheStore

Trait MbaCacheStore 

Source
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§

Source

fn get(&self, k: &CacheKey) -> Option<CacheEntry>

The entry for k.

Source

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".

Implementors§