metrale_storage/
snapshot_swap.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3//! 2026-09-25: Paging core of the SSM snapshot tier: the peer's TCP control protocol
4//! and paging loops, the client side of that protocol (`wire`), and `MmapSlotArena`
5//! (`mmap_arena`). Re-exports the generic `tier` types it builds on.
6//!
7//! Owner: storage, SSM snapshot tier.
8//! Invariants: none beyond the types.
9//!
10//! The peer runs a `Residency` over its RDMA-registered arena and an NVMe swap file,
11//! and owns residency, so every client of one arena shares its cache. The paging
12//! loops register no memory: blobs move between arena and swap under the rkeys each
13//! connection registered in its handshake.
14
15#![allow(dead_code)]
16
17/// 2026-09-25: The generic paging types from `crate::tier`.
18pub use crate::tier::{
19    DirectSwapFile, MemSwapStore, Residency, SlotArena, SwapStats, SwapStore, VecSlotArena,
20};
21
22mod mmap_arena;
23mod wire;
24
25pub use mmap_arena::MmapSlotArena;
26pub use wire::*;