pub struct HostInfo {
pub kernel: Option<String>,
pub os: Option<String>,
pub cpu_model: Option<String>,
pub cpu_cores: Option<u32>,
pub ram_bytes: Option<u64>,
}Expand description
Host information recorded in the header.
Fields§
§kernel: Option<String>Kernel release, e.g. “6.8.0-45-generic”.
os: Option<String>OS name, e.g. “linux”.
cpu_model: Option<String>CPU model name.
cpu_cores: Option<u32>Number of logical cores.
ram_bytes: Option<u64>Physical RAM bytes.
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 Freeze for HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnsafeUnpin for HostInfo
impl UnwindSafe for HostInfo
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