pub struct MemSwapStore { /* private fields */ }Expand description
The generic paging core, lifted to atlas-tier (CUDA- and verbs-free).
Re-exported under the atlas_tier names (no historical aliases).
Host-RAM SwapStore over a HashMap. Records live in ordinary heap
memory — the “swap” tier when no NVMe directory is configured (unbounded,
still LRU-ordered by the residency).
Implementations§
Source§impl MemSwapStore
impl MemSwapStore
pub fn new(record_bytes: usize) -> MemSwapStore
Trait Implementations§
Source§impl SwapStore for MemSwapStore
impl SwapStore for MemSwapStore
fn record_bytes(&self) -> usize
fn write_record(&mut self, disk_slot: usize, bytes: &[u8]) -> Result<(), Error>
fn read_record(&self, disk_slot: usize, out: &mut [u8]) -> Result<(), Error>
Source§fn discard_record(&mut self, disk_slot: usize)
fn discard_record(&mut self, disk_slot: usize)
Optional: reclaim disk space for a freed slot (default no-op; a hole in
a preallocated file is fine — the free-list reuses the index).
Auto Trait Implementations§
impl Freeze for MemSwapStore
impl RefUnwindSafe for MemSwapStore
impl Send for MemSwapStore
impl Sync for MemSwapStore
impl Unpin for MemSwapStore
impl UnwindSafe for MemSwapStore
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