Enum nvml_wrapper::enum_wrappers::device::Sampling
source · [−]pub enum Sampling {
Power,
GpuUtilization,
MemoryUtilization,
EncoderUtilization,
DecoderUtilization,
ProcessorClock,
MemoryClock,
}Expand description
Possible types of sampling events.
Variants
Power
Total power drawn by GPU.
GpuUtilization
Percent of time during which one or more kernels was executing on the GPU.
MemoryUtilization
Percent of time during which global (device) memory was being read or written.
EncoderUtilization
Percent of time during which NVENC remains busy.
DecoderUtilization
Percent of time during which NVDEC remains busy.
ProcessorClock
Processor clock samples.
MemoryClock
Memory clock samples.
Implementations
sourceimpl Sampling
impl Sampling
sourcepub fn as_c(&self) -> nvmlSamplingType_enum
pub fn as_c(&self) -> nvmlSamplingType_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations
impl Eq for Sampling
impl StructuralEq for Sampling
impl StructuralPartialEq for Sampling
Auto Trait Implementations
impl RefUnwindSafe for Sampling
impl Send for Sampling
impl Sync for Sampling
impl Unpin for Sampling
impl UnwindSafe for Sampling
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