pub struct Get;
Implementations§
Source§impl Get
impl Get
pub fn sysproperty(property: SysProperty) -> Result<String, Error>
pub fn uptime() -> Result<f64, Error>
pub fn cpu_info() -> Result<String, Box<dyn Error>>
pub fn mem(target: Memory) -> Result<u64, Box<dyn Error>>
pub fn total_clock_speed() -> Result<f32, Box<dyn Error>>
pub fn total_cpu_cores() -> Result<usize, Error>
pub fn cpu_clock() -> Result<f32, Box<dyn Error>>
pub fn network_dev() -> Result<NetworkDevices, Box<dyn Error>>
pub fn storage_devices() -> Result<Storages, Box<dyn Error>>
pub fn vgs() -> Result<VolGroups, Box<dyn Error>>
pub fn graphics_card() -> Result<String, Box<dyn Error>>
pub fn temperatures() -> Result<Temperatures, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Get
impl RefUnwindSafe for Get
impl Send for Get
impl Sync for Get
impl Unpin for Get
impl UnwindSafe for Get
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