pub struct ProcessSystemInfo {
pub memory_usage: u64,
pub cpu_usage: f32,
pub cpu_time: u64,
pub open_files: Option<usize>,
pub total_written_bytes: u64,
pub written_bytes: u64,
pub total_read_bytes: u64,
pub read_bytes: u64,
}Expand description
Represents system resource usage information for a process
Fields§
§memory_usage: u64Memory usage in bytes
cpu_usage: f32CPU usage as a percentage (0-100)
cpu_time: u64CPU time in milliseconds
open_files: Option<usize>Open files
total_written_bytes: u64Total number of written bytes.
written_bytes: u64Number of written bytes since the last refresh.
total_read_bytes: u64Total number of read bytes.
read_bytes: u64Number of read bytes since the last refresh.
Trait Implementations§
Source§impl Clone for ProcessSystemInfo
impl Clone for ProcessSystemInfo
Source§fn clone(&self) -> ProcessSystemInfo
fn clone(&self) -> ProcessSystemInfo
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 moreSource§impl Debug for ProcessSystemInfo
impl Debug for ProcessSystemInfo
Source§impl Default for ProcessSystemInfo
impl Default for ProcessSystemInfo
Source§fn default() -> ProcessSystemInfo
fn default() -> ProcessSystemInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProcessSystemInfo
impl<'de> Deserialize<'de> for ProcessSystemInfo
Source§fn 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
Auto Trait Implementations§
impl Freeze for ProcessSystemInfo
impl RefUnwindSafe for ProcessSystemInfo
impl Send for ProcessSystemInfo
impl Sync for ProcessSystemInfo
impl Unpin for ProcessSystemInfo
impl UnwindSafe for ProcessSystemInfo
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