pub struct GpuCapacity {
pub count: u32,
pub gpu_type: String,
pub memory_total_bytes: u64,
pub memory_used_bytes: u64,
pub utilization: f64,
pub temperature: Option<f64>,
}Expand description
GPU capacity.
Fields§
§count: u32§gpu_type: String§memory_total_bytes: u64§memory_used_bytes: u64§utilization: f64§temperature: Option<f64>Trait Implementations§
Source§impl Clone for GpuCapacity
impl Clone for GpuCapacity
Source§fn clone(&self) -> GpuCapacity
fn clone(&self) -> GpuCapacity
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 GpuCapacity
impl Debug for GpuCapacity
Source§impl<'de> Deserialize<'de> for GpuCapacity
impl<'de> Deserialize<'de> for GpuCapacity
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 GpuCapacity
impl RefUnwindSafe for GpuCapacity
impl Send for GpuCapacity
impl Sync for GpuCapacity
impl Unpin for GpuCapacity
impl UnsafeUnpin for GpuCapacity
impl UnwindSafe for GpuCapacity
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