pub struct SystemInfo {Show 14 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 vaapi: bool,
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
vaapi: boolIf the machine supports vaapi
model: Option<String>Machine model. Some machines has special models like rpi
Trait Implementations§
Source§impl Debug for SystemInfo
impl Debug for SystemInfo
Source§impl<'de> Deserialize<'de> for SystemInfo
impl<'de> Deserialize<'de> for SystemInfo
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
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
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