#[repr(u32)]pub enum SamplingType {
TotalPower = 0,
GpuUtilization = 1,
MemoryUtilization = 2,
EncoderUtilization = 3,
DecoderUtilization = 4,
ProcessorClock = 5,
MemoryClock = 6,
ModulePower = 7,
JpgUtilization = 8,
OfaUtilization = 9,
}Variants§
TotalPower = 0
GpuUtilization = 1
MemoryUtilization = 2
EncoderUtilization = 3
DecoderUtilization = 4
ProcessorClock = 5
MemoryClock = 6
ModulePower = 7
JpgUtilization = 8
OfaUtilization = 9
Trait Implementations§
Source§impl Clone for SamplingType
impl Clone for SamplingType
Source§fn clone(&self) -> SamplingType
fn clone(&self) -> SamplingType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SamplingType
impl Debug for SamplingType
Source§impl From<SamplingType> for nvmlSamplingType_t
impl From<SamplingType> for nvmlSamplingType_t
Source§fn from(value: SamplingType) -> Self
fn from(value: SamplingType) -> Self
Converts to this type from the input type.
Source§impl From<SamplingType> for u32
impl From<SamplingType> for u32
Source§fn from(enum_value: SamplingType) -> Self
fn from(enum_value: SamplingType) -> Self
Converts to this type from the input type.
Source§impl From<nvmlSamplingType_enum> for SamplingType
impl From<nvmlSamplingType_enum> for SamplingType
Source§fn from(value: nvmlSamplingType_t) -> Self
fn from(value: nvmlSamplingType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for SamplingType
impl Hash for SamplingType
Source§impl PartialEq for SamplingType
impl PartialEq for SamplingType
Source§fn eq(&self, other: &SamplingType) -> bool
fn eq(&self, other: &SamplingType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for SamplingType
impl TryFrom<u32> for SamplingType
Source§type Error = TryFromPrimitiveError<SamplingType>
type Error = TryFromPrimitiveError<SamplingType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SamplingType
impl TryFromPrimitive for SamplingType
const NAME: &'static str = "SamplingType"
type Primitive = u32
type Error = TryFromPrimitiveError<SamplingType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SamplingType
impl Eq for SamplingType
impl StructuralPartialEq for SamplingType
Auto Trait Implementations§
impl Freeze for SamplingType
impl RefUnwindSafe for SamplingType
impl Send for SamplingType
impl Sync for SamplingType
impl Unpin for SamplingType
impl UnsafeUnpin for SamplingType
impl UnwindSafe for SamplingType
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