pub struct WorkloadStats {
pub cpu_percent: f64,
pub memory_usage: i64,
pub memory_limit: i64,
pub network_rx_bytes: i64,
pub network_tx_bytes: i64,
pub disk_read_bytes: i64,
pub disk_write_bytes: i64,
pub pids: i64,
}Expand description
Resource usage statistics.
Fields§
§cpu_percent: f64CPU usage as a percentage.
memory_usage: i64Memory in use, in bytes.
memory_limit: i64Memory limit, in bytes.
network_rx_bytes: i64Bytes received over the network.
network_tx_bytes: i64Bytes transmitted over the network.
disk_read_bytes: i64Bytes read from disk.
disk_write_bytes: i64Bytes written to disk.
pids: i64Number of processes/threads.
Trait Implementations§
Source§impl Clone for WorkloadStats
impl Clone for WorkloadStats
Source§fn clone(&self) -> WorkloadStats
fn clone(&self) -> WorkloadStats
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 WorkloadStats
impl Debug for WorkloadStats
Source§impl Default for WorkloadStats
impl Default for WorkloadStats
Source§fn default() -> WorkloadStats
fn default() -> WorkloadStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkloadStats
impl PartialEq for WorkloadStats
impl StructuralPartialEq for WorkloadStats
Auto Trait Implementations§
impl Freeze for WorkloadStats
impl RefUnwindSafe for WorkloadStats
impl Send for WorkloadStats
impl Sync for WorkloadStats
impl Unpin for WorkloadStats
impl UnsafeUnpin for WorkloadStats
impl UnwindSafe for WorkloadStats
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