pub struct ProcSnapshot {
pub pid: u32,
pub uid: u32,
pub package_name: Option<String>,
pub vm_rss_kb: u64,
pub vm_swap_kb: u64,
pub threads: u32,
pub oom_score: i32,
pub io_read_mb: u64,
pub io_write_mb: u64,
pub state: ProcState,
}Expand description
一次 /proc 轮询的结果
Fields§
§pid: u32§uid: u32§package_name: Option<String>§vm_rss_kb: u64§vm_swap_kb: u64§threads: u32§oom_score: i32§io_read_mb: u64§io_write_mb: u64§state: ProcStateTrait Implementations§
Source§impl Clone for ProcSnapshot
impl Clone for ProcSnapshot
Source§fn clone(&self) -> ProcSnapshot
fn clone(&self) -> ProcSnapshot
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 ProcSnapshot
impl RefUnwindSafe for ProcSnapshot
impl Send for ProcSnapshot
impl Sync for ProcSnapshot
impl Unpin for ProcSnapshot
impl UnsafeUnpin for ProcSnapshot
impl UnwindSafe for ProcSnapshot
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