pub struct ProcessStats {
pub cpu_percent: f64,
pub memory_mb: f64,
pub threads: u32,
pub file_handles: u32,
pub uptime: Duration,
}
Expand description
Process-specific resource usage
Fields§
§cpu_percent: f64
CPU usage percentage
memory_mb: f64
Memory usage in megabytes
threads: u32
Number of threads
file_handles: u32
Number of file handles
uptime: Duration
Process uptime
Trait Implementations§
Source§impl Clone for ProcessStats
impl Clone for ProcessStats
Source§fn clone(&self) -> ProcessStats
fn clone(&self) -> ProcessStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProcessStats
impl RefUnwindSafe for ProcessStats
impl Send for ProcessStats
impl Sync for ProcessStats
impl Unpin for ProcessStats
impl UnwindSafe for ProcessStats
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