pub struct Stash {
pub pages: FxHashMap<u64, Arc<Mutex<PageInfo>>>,
pub total: i64,
pub mem_limit: usize,
pub read: u64,
pub miss: u64,
/* private fields */
}Expand description
Central store of data.
Fields§
§pages: FxHashMap<u64, Arc<Mutex<PageInfo>>>Page number -> page info.
total: i64Total size of current pages.
mem_limit: usizetrim_cache reduces total to mem_limit (or below).
read: u64Total number of page accesses.
miss: u64Total number of misses ( data was not already loaded ).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stash
impl RefUnwindSafe for Stash
impl Send for Stash
impl Sync for Stash
impl Unpin for Stash
impl UnsafeUnpin for Stash
impl UnwindSafe for Stash
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