pub struct ProcessCollector {
pub processes: BTreeMap<Pid, Process>,
}Fields§
§processes: BTreeMap<Pid, Process>Implementations§
Source§impl ProcessCollector
Used to maintain a list of up-to-date processes while persisting cached data within the process
struct between each update. For example, processes cache CPU busy times in order to calculate
CPU percent.
impl ProcessCollector
Used to maintain a list of up-to-date processes while persisting cached data within the process struct between each update. For example, processes cache CPU busy times in order to calculate CPU percent.
Trait Implementations§
Source§impl Clone for ProcessCollector
impl Clone for ProcessCollector
Source§fn clone(&self) -> ProcessCollector
fn clone(&self) -> ProcessCollector
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 ProcessCollector
impl RefUnwindSafe for ProcessCollector
impl Send for ProcessCollector
impl Sync for ProcessCollector
impl Unpin for ProcessCollector
impl UnwindSafe for ProcessCollector
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