pub struct CopyRule {
pub id: String,
pub arch: Vec<String>,
pub ops: Vec<String>,
pub section: Section,
pub stored: Vec<Format>,
pub served: Vec<Format>,
pub when: BTreeMap<String, String>,
pub law: CopyLaw,
pub count: u64,
pub leaked: bool,
pub site: String,
}Expand description
2026-10-02: One copy rule.
Fields§
§id: String2026-10-02: Rule id (unique).
arch: Vec<String>2026-10-02: Arches it applies to.
ops: Vec<String>2026-10-02: Op spellings it matches (OpKind::name: linear:q, lm_head, …).
section: Section2026-10-02: The section it matches (main | draft).
stored: Vec<Format>2026-10-02: Declared (stored) weight formats it matches; empty matches any.
served: Vec<Format>2026-10-02: Served weight formats it matches; empty matches any.
when: BTreeMap<String, String>2026-10-02: Serve settings that must hold (speculative = "on").
law: CopyLaw2026-10-02: The copy’s byte law.
count: u642026-10-02: Copies per matched weight.
leaked: bool2026-10-02: Nothing reads it and nothing frees it (a loader defect, resident all the same).
site: String2026-10-02: The loader site that allocates it.
Implementations§
Trait Implementations§
impl StructuralPartialEq for CopyRule
Auto Trait Implementations§
impl Freeze for CopyRule
impl RefUnwindSafe for CopyRule
impl Send for CopyRule
impl Sync for CopyRule
impl Unpin for CopyRule
impl UnwindSafe for CopyRule
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