pub enum PerformanceState {
Show 17 variants
Zero,
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Eleven,
Twelve,
Thirteen,
Fourteen,
Fifteen,
Unknown,
}
Expand description
Allowed performance states.
Value Performance
0 (highest)
...
15 (lowest)
Variants§
Zero
Maximum performance.
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Minimum peformance.
Unknown
Unknown performance state.
Implementations§
source§impl PerformanceState
impl PerformanceState
sourcepub fn as_c(&self) -> nvmlPStates_enum
pub fn as_c(&self) -> nvmlPStates_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for PerformanceState
impl Clone for PerformanceState
source§fn clone(&self) -> PerformanceState
fn clone(&self) -> PerformanceState
Returns a copy of the value. Read more
1.0.0 · 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 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
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for PerformanceState
impl TryFrom<u32> for PerformanceState
impl Eq for PerformanceState
impl StructuralPartialEq for PerformanceState
Auto Trait Implementations§
impl RefUnwindSafe for PerformanceState
impl Send for PerformanceState
impl Sync for PerformanceState
impl Unpin 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