pub struct MemoryResultCache { /* private fields */ }Expand description
Process-local cache used by tests and as a seed/hit fixture.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryResultCache
impl Debug for MemoryResultCache
Source§impl Default for MemoryResultCache
impl Default for MemoryResultCache
Source§fn default() -> MemoryResultCache
fn default() -> MemoryResultCache
Returns the “default value” for a type. Read more
Source§impl ResultCache for MemoryResultCache
impl ResultCache for MemoryResultCache
Source§fn get(
&self,
key: &CacheKey,
check_name: &str,
) -> Result<Option<ResultCacheEntry>, ResultCacheError>
fn get( &self, key: &CacheKey, check_name: &str, ) -> Result<Option<ResultCacheEntry>, ResultCacheError>
Load the entry for
key + check_name, if a valid one is stored.Source§fn put(&self, entry: &ResultCacheEntry) -> Result<(), ResultCacheError>
fn put(&self, entry: &ResultCacheEntry) -> Result<(), ResultCacheError>
Persist
entry under its recorded triple and check name.Auto Trait Implementations§
impl !Freeze for MemoryResultCache
impl RefUnwindSafe for MemoryResultCache
impl Send for MemoryResultCache
impl Sync for MemoryResultCache
impl Unpin for MemoryResultCache
impl UnsafeUnpin for MemoryResultCache
impl UnwindSafe for MemoryResultCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more