pub struct HardwareProfile {
pub gpu_vendor: Option<String>,
pub gpu_model: Option<String>,
pub integrated: Option<bool>,
pub rebar_enabled: Option<bool>,
pub host_visible_vram: Option<bool>,
pub ram_bytes: Option<u64>,
pub cpu_cores: Option<u32>,
pub kernel: Option<String>,
pub cpu_model: Option<String>,
}Expand description
Hardware capabilities discovered at runtime (Katra3D §30).
Used to derive hardware policies (staging strategy, budget sizing).
Values are Option because they may not be discoverable in every
environment; nothing may be assumed.
Fields§
§gpu_vendor: Option<String>GPU vendor string, if discoverable.
gpu_model: Option<String>GPU model string, if discoverable.
integrated: Option<bool>Whether the GPU is integrated (unified memory).
rebar_enabled: Option<bool>Whether Resizable BAR is active.
host_visible_vram: Option<bool>Whether host-visible VRAM is available.
ram_bytes: Option<u64>Physical RAM in bytes.
cpu_cores: Option<u32>Number of logical CPU cores.
kernel: Option<String>Kernel release string (e.g. “6.8.0-45-generic”).
cpu_model: Option<String>CPU model name (from /proc/cpuinfo).
Trait Implementations§
Source§impl Clone for HardwareProfile
impl Clone for HardwareProfile
Source§fn clone(&self) -> HardwareProfile
fn clone(&self) -> HardwareProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HardwareProfile
impl Debug for HardwareProfile
Source§impl Default for HardwareProfile
impl Default for HardwareProfile
Source§fn default() -> HardwareProfile
fn default() -> HardwareProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HardwareProfile
impl<'de> Deserialize<'de> for HardwareProfile
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
Source§impl PartialEq for HardwareProfile
impl PartialEq for HardwareProfile
Source§impl Serialize for HardwareProfile
impl Serialize for HardwareProfile
impl StructuralPartialEq for HardwareProfile
Auto Trait Implementations§
impl Freeze for HardwareProfile
impl RefUnwindSafe for HardwareProfile
impl Send for HardwareProfile
impl Sync for HardwareProfile
impl Unpin for HardwareProfile
impl UnsafeUnpin for HardwareProfile
impl UnwindSafe for HardwareProfile
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