pub struct MemSwapStore { /* private fields */ }Expand description
2026-09-25: SwapStore over a HashMap of heap records, with no bound of
its own. Model-engine’s unified SSM store falls back to it when no swap
file can be used.
Implementations§
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<()>
fn read_record(&self, disk_slot: usize, out: &mut [u8]) -> Result<()>
Source§fn discard_record(&mut self, disk_slot: usize)
fn discard_record(&mut self, disk_slot: usize)
2026-09-25: Called when
disk_slot is freed. The default does nothing;
Residency reuses the index from its free list either way.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