pub struct ProcessRow {
pub user: String,
pub pid: u32,
pub cpu_percent: f64,
pub memory_percent: f64,
pub virtual_size_kib: u64,
pub resident_size_kib: u64,
pub tty: String,
pub state: String,
pub start: String,
pub cpu_time: String,
pub command: String,
}Expand description
Typed row from a process snapshot.
Fields§
§user: StringProcess owner.
pid: u32Process identifier.
cpu_percent: f64CPU percentage reported by ps.
memory_percent: f64Memory percentage reported by ps.
virtual_size_kib: u64Virtual memory size in KiB.
resident_size_kib: u64Resident memory size in KiB.
tty: StringControlling terminal.
state: StringProcess state flags.
start: StringProcess start field reported by ps.
cpu_time: StringAccumulated CPU time.
command: StringCommand and arguments.
Trait Implementations§
Source§impl Clone for ProcessRow
impl Clone for ProcessRow
Source§fn clone(&self) -> ProcessRow
fn clone(&self) -> ProcessRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessRow
impl Debug for ProcessRow
Source§impl<'de> Deserialize<'de> for ProcessRow
impl<'de> Deserialize<'de> for ProcessRow
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
Source§impl PartialEq for ProcessRow
impl PartialEq for ProcessRow
Source§fn eq(&self, other: &ProcessRow) -> bool
fn eq(&self, other: &ProcessRow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessRow
impl Serialize for ProcessRow
impl StructuralPartialEq for ProcessRow
Auto Trait Implementations§
impl Freeze for ProcessRow
impl RefUnwindSafe for ProcessRow
impl Send for ProcessRow
impl Sync for ProcessRow
impl Unpin for ProcessRow
impl UnsafeUnpin for ProcessRow
impl UnwindSafe for ProcessRow
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