pub enum TemperatureThreshold {
Shutdown,
Slowdown,
MemoryMax,
GpuMax,
}Variants
Shutdown
Temperature at which the GPU will shut down for hardware protection.
Slowdown
Temperature at which the GPU will begin hardware throttling.
MemoryMax
Memory temperature at which the GPU will begin software slowdown.
GpuMax
GPU temperature at which the GPU can be throttled below the base clock.
Implementations
sourceimpl TemperatureThreshold
impl TemperatureThreshold
sourcepub fn as_c(&self) -> nvmlTemperatureThresholds_enum
pub fn as_c(&self) -> nvmlTemperatureThresholds_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations
sourceimpl Clone for TemperatureThreshold
impl Clone for TemperatureThreshold
sourcefn clone(&self) -> TemperatureThreshold
fn clone(&self) -> TemperatureThreshold
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 TemperatureThreshold
impl Debug for TemperatureThreshold
sourceimpl Hash for TemperatureThreshold
impl Hash for TemperatureThreshold
sourceimpl TryFrom<u32> for TemperatureThreshold
impl TryFrom<u32> for TemperatureThreshold
impl Eq for TemperatureThreshold
impl StructuralEq for TemperatureThreshold
impl StructuralPartialEq for TemperatureThreshold
Auto Trait Implementations
impl RefUnwindSafe for TemperatureThreshold
impl Send for TemperatureThreshold
impl Sync for TemperatureThreshold
impl Unpin for TemperatureThreshold
impl UnwindSafe for TemperatureThreshold
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