pub struct ContainerUsage {
pub name: String,
pub processes: usize,
pub cpu_percent: f32,
pub memory_bytes: u64,
pub gpu_percent: Option<f32>,
pub vram_bytes: Option<u64>,
}Expand description
What the processes of one container use together.
Fields§
§name: String§processes: usize§cpu_percent: f32§memory_bytes: u64§gpu_percent: Option<f32>Summed over its processes, where any uses a GPU.
vram_bytes: Option<u64>Trait Implementations§
Source§impl Clone for ContainerUsage
impl Clone for ContainerUsage
Source§impl Debug for ContainerUsage
impl Debug for ContainerUsage
Source§impl PartialEq for ContainerUsage
impl PartialEq for ContainerUsage
impl StructuralPartialEq for ContainerUsage
Auto Trait Implementations§
impl Freeze for ContainerUsage
impl RefUnwindSafe for ContainerUsage
impl Send for ContainerUsage
impl Sync for ContainerUsage
impl Unpin for ContainerUsage
impl UnsafeUnpin for ContainerUsage
impl UnwindSafe for ContainerUsage
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