pub struct CpuCollector {
pid: Option<i32>,
prev: Option<Snapshot>,
}Fields§
§pid: Option<i32>Root PID of the process tree to track. None = system-only metrics.
prev: Option<Snapshot>Implementations§
Auto Trait Implementations§
impl Freeze for CpuCollector
impl RefUnwindSafe for CpuCollector
impl Send for CpuCollector
impl Sync for CpuCollector
impl Unpin for CpuCollector
impl UnsafeUnpin for CpuCollector
impl UnwindSafe for CpuCollector
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