#[repr(u32)]pub enum PerfPolicyType {
Power = 0,
Thermal = 1,
SyncBoost = 2,
BoardLimit = 3,
LowUtilization = 4,
Reliability = 5,
TotalAppClocks = 10,
TotalBaseClocks = 11,
}Variants§
Power = 0
Thermal = 1
SyncBoost = 2
BoardLimit = 3
LowUtilization = 4
Reliability = 5
TotalAppClocks = 10
TotalBaseClocks = 11
Trait Implementations§
Source§impl Clone for PerfPolicyType
impl Clone for PerfPolicyType
Source§fn clone(&self) -> PerfPolicyType
fn clone(&self) -> PerfPolicyType
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 PerfPolicyType
impl Debug for PerfPolicyType
Source§impl From<PerfPolicyType> for nvmlPerfPolicyType_t
impl From<PerfPolicyType> for nvmlPerfPolicyType_t
Source§fn from(value: PerfPolicyType) -> Self
fn from(value: PerfPolicyType) -> Self
Converts to this type from the input type.
Source§impl From<PerfPolicyType> for u32
impl From<PerfPolicyType> for u32
Source§fn from(enum_value: PerfPolicyType) -> Self
fn from(enum_value: PerfPolicyType) -> Self
Converts to this type from the input type.
Source§impl From<nvmlPerfPolicyType_enum> for PerfPolicyType
impl From<nvmlPerfPolicyType_enum> for PerfPolicyType
Source§fn from(value: nvmlPerfPolicyType_t) -> Self
fn from(value: nvmlPerfPolicyType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for PerfPolicyType
impl Hash for PerfPolicyType
Source§impl PartialEq for PerfPolicyType
impl PartialEq for PerfPolicyType
Source§fn eq(&self, other: &PerfPolicyType) -> bool
fn eq(&self, other: &PerfPolicyType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for PerfPolicyType
impl TryFrom<u32> for PerfPolicyType
Source§type Error = TryFromPrimitiveError<PerfPolicyType>
type Error = TryFromPrimitiveError<PerfPolicyType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PerfPolicyType
impl TryFromPrimitive for PerfPolicyType
const NAME: &'static str = "PerfPolicyType"
type Primitive = u32
type Error = TryFromPrimitiveError<PerfPolicyType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PerfPolicyType
impl Eq for PerfPolicyType
impl StructuralPartialEq for PerfPolicyType
Auto Trait Implementations§
impl Freeze for PerfPolicyType
impl RefUnwindSafe for PerfPolicyType
impl Send for PerfPolicyType
impl Sync for PerfPolicyType
impl Unpin for PerfPolicyType
impl UnsafeUnpin for PerfPolicyType
impl UnwindSafe for PerfPolicyType
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