pub struct ProcessActivitySnapshot {
pub generated_at: SystemTime,
pub processes: Vec<ProcessActivity>,
pub current_tx_bps: f64,
pub current_rx_bps: f64,
pub window_tx_bytes: u64,
pub window_rx_bytes: u64,
pub retained_tx_bytes: u64,
pub retained_rx_bytes: u64,
pub attributed_tx_bytes: u64,
pub attributed_rx_bytes: u64,
}Expand description
Immutable point-in-time process activity view.
Fields§
§generated_at: SystemTime§processes: Vec<ProcessActivity>§current_tx_bps: f64§current_rx_bps: f64§window_tx_bytes: u64§window_rx_bytes: u64§retained_tx_bytes: u64§retained_rx_bytes: u64§attributed_tx_bytes: u64§attributed_rx_bytes: u64Implementations§
Source§impl ProcessActivitySnapshot
impl ProcessActivitySnapshot
pub fn tx_attribution_pct(&self) -> f64
pub fn rx_attribution_pct(&self) -> f64
Trait Implementations§
Source§impl Clone for ProcessActivitySnapshot
impl Clone for ProcessActivitySnapshot
Source§fn clone(&self) -> ProcessActivitySnapshot
fn clone(&self) -> ProcessActivitySnapshot
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 ProcessActivitySnapshot
impl Debug for ProcessActivitySnapshot
Auto Trait Implementations§
impl Freeze for ProcessActivitySnapshot
impl RefUnwindSafe for ProcessActivitySnapshot
impl Send for ProcessActivitySnapshot
impl Sync for ProcessActivitySnapshot
impl Unpin for ProcessActivitySnapshot
impl UnsafeUnpin for ProcessActivitySnapshot
impl UnwindSafe for ProcessActivitySnapshot
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