pub struct WeightPeerConfig {
pub rails: Vec<(String, u32)>,
pub max_blade_bytes: u64,
pub staged_dirs: Vec<PathBuf>,
pub allow_any_path: bool,
}Expand description
2026-09-25: The peer’s rails, its staging ceiling, and which model directories a client may request.
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, in bytes, on the shard bytes of all staged models together, 0 for none. Each model is charged once, when it is first staged; per-connection registrations are not charged.
staged_dirs: Vec<PathBuf>2026-09-25: Directories staged at startup. Unless allow_any_path is
set, a request must name one of them by full path or by final component.
allow_any_path: bool2026-09-25: When true, a request that names any existing directory is staged on demand.
Trait Implementations§
Source§impl Clone for WeightPeerConfig
impl Clone for WeightPeerConfig
Source§fn clone(&self) -> WeightPeerConfig
fn clone(&self) -> WeightPeerConfig
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 WeightPeerConfig
impl Debug for WeightPeerConfig
Auto Trait Implementations§
impl Freeze for WeightPeerConfig
impl RefUnwindSafe for WeightPeerConfig
impl Send for WeightPeerConfig
impl Sync for WeightPeerConfig
impl Unpin for WeightPeerConfig
impl UnwindSafe for WeightPeerConfig
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