Struct nvml_wrapper::struct_wrappers::device::Utilization
source · [−]Expand description
Utilization information for a device. Each sample period may be between 1 second and 1/6 second, depending on the product being queried.
Fields
gpu: u32Percent of time over the past sample period during which one or more kernels was executing on the GPU.
memory: u32Percent of time over the past sample period during which global (device) memory was being read or written to.
Trait Implementations
sourceimpl Clone for Utilization
impl Clone for Utilization
sourcefn clone(&self) -> Utilization
fn clone(&self) -> Utilization
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Utilization
impl Debug for Utilization
sourceimpl From<nvmlUtilization_st> for Utilization
impl From<nvmlUtilization_st> for Utilization
sourcefn from(struct_: nvmlUtilization_t) -> Self
fn from(struct_: nvmlUtilization_t) -> Self
Converts to this type from the input type.
sourceimpl Hash for Utilization
impl Hash for Utilization
sourceimpl PartialEq<Utilization> for Utilization
impl PartialEq<Utilization> for Utilization
sourcefn eq(&self, other: &Utilization) -> bool
fn eq(&self, other: &Utilization) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Utilization) -> bool
fn ne(&self, other: &Utilization) -> bool
This method tests for !=.
impl Eq for Utilization
impl StructuralEq for Utilization
impl StructuralPartialEq for Utilization
Auto Trait Implementations
impl RefUnwindSafe for Utilization
impl Send for Utilization
impl Sync for Utilization
impl Unpin for Utilization
impl UnwindSafe for Utilization
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more