pub struct SysInfo {
pub sys: System,
}Expand description
A Mute Wrapper for sysinfo crate’s System struct
Fields§
§sys: SystemImplementations§
Source§impl SysInfo
Impl methods from sysinfo’s System struct for convenience
impl SysInfo
Impl methods from sysinfo’s System struct for convenience
pub fn refresh_all(&mut self)
pub fn refresh_memory(&mut self)
pub fn refresh_cpu(&mut self)
pub fn refresh_processes(&mut self)
pub fn refresh_process(&mut self, pid: Pid)
pub fn refresh_specifics(&mut self, refreshes: RefreshKind)
pub fn refresh_cpu_specifics(&mut self, refresh_kind: CpuRefreshKind)
pub fn refresh_processes_specifics(&mut self, refresh_kind: ProcessRefreshKind)
pub fn refresh_process_specifics( &mut self, pid: Pid, refresh_kind: ProcessRefreshKind, )
pub fn hostname(&self) -> Option<String>
pub fn kernel_version(&self) -> Option<String>
pub fn os_version(&self) -> Option<String>
pub fn name(&self) -> Option<String>
pub fn total_memory(&mut self) -> u64
pub fn used_memory(&mut self) -> u64
pub fn total_swap(&mut self) -> u64
pub fn used_swap(&mut self) -> u64
pub fn cpus(&self) -> Vec<Cpu>
pub fn cpu_count(&self) -> usize
pub fn disks(&mut self) -> Vec<Disk>
pub fn networks(&self) -> Vec<Network>
pub fn components(&self) -> Vec<Component>
pub fn processes(&self) -> Vec<Process>
pub fn batteries(&self) -> Result<Vec<Battery>, Error>
Auto Trait Implementations§
impl Freeze for SysInfo
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnwindSafe for SysInfo
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more