pub struct ReasonerCacheStore { /* private fields */ }Implementations§
Source§impl ReasonerCacheStore
impl ReasonerCacheStore
pub fn new() -> Self
pub fn get( &self, content_hash: &str, profile: ReasonerId, ) -> Option<&ReasonerCache>
pub fn get_any_for_profile(&self, profile: ReasonerId) -> Option<&ReasonerCache>
pub fn insert(&mut self, cache: ReasonerCache)
pub fn invalidate(&mut self)
pub fn latest_snapshot(&self) -> Option<&ReasonerSnapshot>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn store_classification( &mut self, input: ReasonerInput, profile: ReasonerId, classification: ClassificationResult, ) -> ReasonerSnapshot
Trait Implementations§
Source§impl Debug for ReasonerCacheStore
impl Debug for ReasonerCacheStore
Source§impl Default for ReasonerCacheStore
impl Default for ReasonerCacheStore
Source§fn default() -> ReasonerCacheStore
fn default() -> ReasonerCacheStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReasonerCacheStore
impl RefUnwindSafe for ReasonerCacheStore
impl Send for ReasonerCacheStore
impl Sync for ReasonerCacheStore
impl Unpin for ReasonerCacheStore
impl UnsafeUnpin for ReasonerCacheStore
impl UnwindSafe for ReasonerCacheStore
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