pub struct System { /* private fields */ }Implementations§
Source§impl System
impl System
pub fn new<T: IntoIterator<Item = Pid> + Clone>( features: Features, pids: T, ) -> Result<Self, Error>
pub fn update(&mut self, now: Instant)
pub fn sysinfo_system(&self) -> Option<&System>
pub fn process_cpu_usage(&self, pid: Pid) -> Option<f32>
pub fn process_mem(&mut self, pid: Pid) -> Option<usize>
pub fn process_alloc(&mut self, pid: Pid) -> Option<usize>
pub fn process_kobject(&mut self, pid: Pid) -> Option<u32>
pub fn process_threads(&self, pid: Pid) -> Option<u32>
pub fn process_disk_read(&self, pid: Pid) -> Option<f32>
pub fn process_disk_write(&self, pid: Pid) -> Option<f32>
pub fn process_name(&self, pid: Pid) -> Option<&str>
pub fn process_command(&self, pid: Pid) -> Option<&[String]>
pub fn process_responsible(&self, pid: Pid) -> Option<Pid>
pub fn system_cpu_frequency(&self) -> Result<Vec<f32>, Error>
pub fn process_gpu_usage( &mut self, pid: Pid, calc: GpuCalculation, ) -> Option<f32>
pub fn process_vram(&mut self, pid: Pid, calc: GpuCalculation) -> Option<f32>
pub fn process_fps(&mut self, pid: Pid) -> f32
pub fn process_net_traffic_in(&self, pid: Pid) -> Option<u32>
pub fn process_net_traffic_out(&self, pid: Pid) -> Option<u32>
pub fn system_cpu_usage(&self) -> Result<Vec<f32>, Error>
pub fn system_gpu_usage(&mut self, calc: GpuCalculation) -> Option<f32>
pub fn system_cpu_temperature(&mut self) -> Result<Vec<f32>, Error>
pub fn system_power(&self) -> Result<f32, Error>
pub fn system_npu_power(&self) -> Result<f32, Error>
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnsafeUnpin for System
impl UnwindSafe for System
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