pub struct HostInfo {Show 14 fields
pub hostname: String,
pub os: OsKind,
pub os_version: String,
pub arch: String,
pub model: Option<String>,
pub cpu_brand: Option<String>,
pub cores_logical: u32,
pub cores_performance: Option<u32>,
pub cores_efficiency: Option<u32>,
pub mem_total: Bytes,
pub unified_memory: bool,
pub fanless: Option<bool>,
pub page_size: u64,
pub boot_time_ms: Option<u64>,
}Expand description
Static-ish facts about the machine.
Fields§
§hostname: String§os: OsKind§os_version: Stringe.g. “macOS 26.6”, “Linux 6.8.0”.
arch: Stringe.g. “aarch64”, “x86_64”.
model: Option<String>Hardware model, e.g. “Mac17,3”.
cpu_brand: Option<String>e.g. “Apple M5”.
cores_logical: u32§cores_performance: Option<u32>§cores_efficiency: Option<u32>§mem_total: Bytes§unified_memory: boolUnified memory (Apple Silicon) vs discrete VRAM.
fanless: Option<bool>Some(true) for fanless machines (thermal-prone), None if unknown.
page_size: u64§boot_time_ms: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostInfo
impl<'de> Deserialize<'de> for HostInfo
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
impl StructuralPartialEq for HostInfo
Auto Trait Implementations§
impl Forget for HostInfo
impl Freeze for HostInfo
impl Move for HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfowhere
RawVecInner: Send,
impl Sync for HostInfowhere
RawVecInner: Sync,
impl Unpin for HostInfo
impl UnsafeUnpin for HostInfo
impl UnwindSafe for HostInfowhere
RawVecInner: UnwindSafe,
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