pub struct RdmaConfig {
pub rails: Vec<(String, u32)>,
pub max_blade_bytes: u64,
pub swap_dir: Option<PathBuf>,
pub swap_cap_bytes: u64,
pub per_kind_swap_cap_bytes: HashMap<u8, u64>,
}Expand description
2026-09-25: The cache peer’s settings. A client asks for up to
rails.len() rails, and the peer registers the arena on each.
Fields§
§rails: Vec<(String, u32)>2026-09-25: (device, gid_idx) per rail; a client asking for n rails
gets the first n.
max_blade_bytes: u642026-09-25: Ceiling on the arena bytes reserved across this serve’s
connections; 0 means none.
swap_dir: Option<PathBuf>2026-09-25: Directory of the paging arenas’ O_DIRECT swap files. With
None, paging clients are refused.
swap_cap_bytes: u642026-09-25: Swap-disk budget shared by the paging arenas of kinds
without a per-kind cap (registry::carve_disk_slots); 0 = unbounded.
per_kind_swap_cap_bytes: HashMap<u8, u64>2026-09-25: Per-kind disk caps (kind.0 → bytes). A listed kind gets
this budget instead of a share of swap_cap_bytes; 0 = unbounded.
Trait Implementations§
Source§impl Clone for RdmaConfig
impl Clone for RdmaConfig
Source§fn clone(&self) -> RdmaConfig
fn clone(&self) -> RdmaConfig
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 RdmaConfig
impl Debug for RdmaConfig
Auto Trait Implementations§
impl Freeze for RdmaConfig
impl RefUnwindSafe for RdmaConfig
impl Send for RdmaConfig
impl Sync for RdmaConfig
impl Unpin for RdmaConfig
impl UnwindSafe for RdmaConfig
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