pub struct ResourceUsageSummary {
pub total_cpu_cores: usize,
pub used_cpu_cores: usize,
pub total_memory: u64,
pub used_memory: u64,
pub total_gpu_devices: usize,
pub used_gpu_devices: usize,
pub utilization_percentage: f64,
}Expand description
Resource usage summary
Fields§
§total_cpu_cores: usizeTotal CPU cores available
used_cpu_cores: usizeUsed CPU cores
total_memory: u64Total memory available in bytes
used_memory: u64Used memory in bytes
total_gpu_devices: usizeTotal GPU devices available
used_gpu_devices: usizeUsed GPU devices
utilization_percentage: f64Current resource utilization percentage
Trait Implementations§
Source§impl Clone for ResourceUsageSummary
impl Clone for ResourceUsageSummary
Source§fn clone(&self) -> ResourceUsageSummary
fn clone(&self) -> ResourceUsageSummary
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 moreAuto Trait Implementations§
impl Freeze for ResourceUsageSummary
impl RefUnwindSafe for ResourceUsageSummary
impl Send for ResourceUsageSummary
impl Sync for ResourceUsageSummary
impl Unpin for ResourceUsageSummary
impl UnwindSafe for ResourceUsageSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more