#[repr(u32)]pub enum PerformanceState {
Show 17 variants
P0 = 0,
P1 = 1,
P2 = 2,
P3 = 3,
P4 = 4,
P5 = 5,
P6 = 6,
P7 = 7,
P8 = 8,
P9 = 9,
P10 = 10,
P11 = 11,
P12 = 12,
P13 = 13,
P14 = 14,
P15 = 15,
Unknown = 32,
}Variants§
P0 = 0
P1 = 1
P2 = 2
P3 = 3
P4 = 4
P5 = 5
P6 = 6
P7 = 7
P8 = 8
P9 = 9
P10 = 10
P11 = 11
P12 = 12
P13 = 13
P14 = 14
P15 = 15
Unknown = 32
Trait Implementations§
Source§impl Clone for PerformanceState
impl Clone for PerformanceState
Source§fn clone(&self) -> PerformanceState
fn clone(&self) -> PerformanceState
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 PerformanceState
impl Debug for PerformanceState
Source§impl From<PerformanceState> for nvmlPstates_t
impl From<PerformanceState> for nvmlPstates_t
Source§fn from(value: PerformanceState) -> Self
fn from(value: PerformanceState) -> Self
Converts to this type from the input type.
Source§impl From<PerformanceState> for u32
impl From<PerformanceState> for u32
Source§fn from(enum_value: PerformanceState) -> Self
fn from(enum_value: PerformanceState) -> Self
Converts to this type from the input type.
Source§impl From<nvmlPStates_enum> for PerformanceState
impl From<nvmlPStates_enum> for PerformanceState
Source§fn from(value: nvmlPstates_t) -> Self
fn from(value: nvmlPstates_t) -> Self
Converts to this type from the input type.
Source§impl Hash for PerformanceState
impl Hash for PerformanceState
Source§impl PartialEq for PerformanceState
impl PartialEq for PerformanceState
Source§fn eq(&self, other: &PerformanceState) -> bool
fn eq(&self, other: &PerformanceState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for PerformanceState
impl TryFrom<u32> for PerformanceState
Source§type Error = TryFromPrimitiveError<PerformanceState>
type Error = TryFromPrimitiveError<PerformanceState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PerformanceState
impl TryFromPrimitive for PerformanceState
const NAME: &'static str = "PerformanceState"
type Primitive = u32
type Error = TryFromPrimitiveError<PerformanceState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PerformanceState
impl Eq for PerformanceState
impl StructuralPartialEq for PerformanceState
Auto Trait Implementations§
impl Freeze for PerformanceState
impl RefUnwindSafe for PerformanceState
impl Send for PerformanceState
impl Sync for PerformanceState
impl Unpin for PerformanceState
impl UnsafeUnpin for PerformanceState
impl UnwindSafe for PerformanceState
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