pub struct HighSpeedSwapConfig {
pub dir: PathBuf,
pub bytes: u64,
pub resident_blocks: u32,
pub rank: u32,
pub qd: u32,
pub graph: bool,
pub projection_seed: u64,
}Fields§
§dir: PathBuf2026-09-25: Directory of the per-layer KV files.
bytes: u642026-09-25: Disk budget in bytes; the server passes
--high-speed-swap-gb × 2^30. validate requires it to be non-zero,
and nothing in this crate reads it otherwise.
resident_blocks: u322026-09-25: Scratch-pool slot count; also the attention tile capacity and the eviction policy’s capacity.
rank: u322026-09-25: Predictor low-rank dimension r.
qd: u322026-09-25: io_uring queue depth; the portable backend ignores it.
graph: bool2026-09-25: Capture the per-layer body in a CUDA graph and replay it.
The server sets it unless --no-high-speed-swap-graph is given.
projection_seed: u642026-09-25: Seed of the predictor’s projection matrix.
Implementations§
Trait Implementations§
Source§impl Clone for HighSpeedSwapConfig
impl Clone for HighSpeedSwapConfig
Source§fn clone(&self) -> HighSpeedSwapConfig
fn clone(&self) -> HighSpeedSwapConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HighSpeedSwapConfig
impl Debug for HighSpeedSwapConfig
Source§impl<'de> Deserialize<'de> for HighSpeedSwapConfig
impl<'de> Deserialize<'de> for HighSpeedSwapConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HighSpeedSwapConfig
impl RefUnwindSafe for HighSpeedSwapConfig
impl Send for HighSpeedSwapConfig
impl Sync for HighSpeedSwapConfig
impl Unpin for HighSpeedSwapConfig
impl UnwindSafe for HighSpeedSwapConfig
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