pub struct ProcessEntry {
pub name: Option<String>,
pub pid: Option<u32>,
pub cpu_pct: Option<f64>,
pub memory_bytes: Option<u64>,
}Expand description
Individual process entry.
Fields§
§name: Option<String>Process name
pid: Option<u32>Process ID
cpu_pct: Option<f64>CPU usage percentage
memory_bytes: Option<u64>Memory usage in bytes
Trait Implementations§
Source§impl Clone for ProcessEntry
impl Clone for ProcessEntry
Source§fn clone(&self) -> ProcessEntry
fn clone(&self) -> ProcessEntry
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 ProcessEntry
impl Debug for ProcessEntry
Source§impl Default for ProcessEntry
impl Default for ProcessEntry
Source§fn default() -> ProcessEntry
fn default() -> ProcessEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProcessEntry
impl<'de> Deserialize<'de> for ProcessEntry
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 ProcessEntry
impl RefUnwindSafe for ProcessEntry
impl Send for ProcessEntry
impl Sync for ProcessEntry
impl Unpin for ProcessEntry
impl UnwindSafe for ProcessEntry
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