pub struct ResidentActivationCache<F> { /* private fields */ }Implementations§
Source§impl<F: Clone> ResidentActivationCache<F>
impl<F: Clone> ResidentActivationCache<F>
pub fn new(config: ResidentCacheConfig) -> Self
pub fn lookup(&mut self, page_id: &str) -> Option<ResidentActivationLookup<F>>
pub fn record( &mut self, page_id: String, token_count: u64, byte_size: u64, frame: F, ) -> ResidentActivationRecordOutcome
pub fn stats(&self) -> ResidentActivationStats
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for ResidentActivationCache<F>
impl<F> RefUnwindSafe for ResidentActivationCache<F>where
F: RefUnwindSafe,
impl<F> Send for ResidentActivationCache<F>where
F: Send,
impl<F> Sync for ResidentActivationCache<F>where
F: Sync,
impl<F> Unpin for ResidentActivationCache<F>where
F: Unpin,
impl<F> UnsafeUnpin for ResidentActivationCache<F>
impl<F> UnwindSafe for ResidentActivationCache<F>where
F: UnwindSafe,
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