Struct machine_info::SystemInfo
source · [−]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: String
Operating system name
kernel_version: String
Running kernel version
os_version: String
Operating system version
hostname: String
System hostname
distribution: String
Distribution id like ubuntu, neon, raspbian…
memory: u64
Total memory of the machine
processor: Processor
Microprocessor description
total_processors: usize
Total 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: bool
If the machine supports vaapi
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