pub struct ContainerStats {
pub container_id: String,
pub name: String,
pub cpu_percent: String,
pub memory_usage: String,
pub memory_percent: String,
pub network_io: String,
pub block_io: String,
pub pids: String,
}
Expand description
Container resource usage statistics
Fields§
§container_id: String
Container ID
name: String
Container name
cpu_percent: String
CPU usage percentage
memory_usage: String
Memory usage
memory_percent: String
Memory usage percentage
network_io: String
Network I/O
block_io: String
Block I/O
pids: String
Number of process IDs (PIDs)
Implementations§
Trait Implementations§
Source§impl Clone for ContainerStats
impl Clone for ContainerStats
Source§fn clone(&self) -> ContainerStats
fn clone(&self) -> ContainerStats
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 moreSource§impl Debug for ContainerStats
impl Debug for ContainerStats
Source§impl<'de> Deserialize<'de> for ContainerStats
impl<'de> Deserialize<'de> for ContainerStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContainerStats
impl RefUnwindSafe for ContainerStats
impl Send for ContainerStats
impl Sync for ContainerStats
impl Unpin for ContainerStats
impl UnwindSafe for ContainerStats
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