Struct machine_info::SystemInfo
source · [−]pub struct SystemInfo {Show 13 fields
pub os_name: String,
pub kernel_version: String,
pub os_version: String,
pub hostname: String,
pub distribution: String,
pub memory: u64,
pub processor: Processor,
pub total_processors: usize,
pub graphics: Vec<GraphicCard>,
pub disks: Vec<Disk>,
pub cameras: Vec<Camera>,
pub nvidia: Option<NvidiaInfo>,
pub model: Option<String>,
}Expand description
Summary of the system
Fields
os_name: StringOperating system name
kernel_version: StringRunning kernel version
os_version: StringOperating system version
hostname: StringSystem hostname
distribution: StringDistribution id like ubuntu, neon, raspbian…
memory: u64Total memory of the machine
processor: ProcessorMicroprocessor description
total_processors: usizeTotal amount of processors
graphics: Vec<GraphicCard>List of graphic cards
disks: Vec<Disk>List of available disks
cameras: Vec<Camera>List of available cameras
nvidia: Option<NvidiaInfo>Nvidia driver info
model: Option<String>Machine model. Some machines has special models like rpi
Trait Implementations
sourceimpl Debug for SystemInfo
impl Debug for SystemInfo
sourceimpl<'de> Deserialize<'de> for SystemInfo
impl<'de> Deserialize<'de> for SystemInfo
sourcefn 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
sourceimpl Serialize for SystemInfo
impl Serialize for SystemInfo
Auto Trait Implementations
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more