Enum nvml_wrapper::enum_wrappers::device::PerformanceState
source · [−]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
sourceimpl 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
sourceimpl Clone for PerformanceState
impl Clone for PerformanceState
sourcefn clone(&self) -> PerformanceState
fn clone(&self) -> PerformanceState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PerformanceState
impl Debug for PerformanceState
sourceimpl Hash for PerformanceState
impl Hash for PerformanceState
sourceimpl PartialEq<PerformanceState> for PerformanceState
impl PartialEq<PerformanceState> for PerformanceState
sourceimpl TryFrom<u32> for PerformanceState
impl TryFrom<u32> for PerformanceState
impl Eq for PerformanceState
impl StructuralEq 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
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