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§
source§impl 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§
source§impl Clone for TemperatureThreshold
impl Clone for TemperatureThreshold
source§fn clone(&self) -> TemperatureThreshold
fn clone(&self) -> TemperatureThreshold
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 TemperatureThreshold
impl Debug for TemperatureThreshold
source§impl Hash for TemperatureThreshold
impl Hash for TemperatureThreshold
source§impl PartialEq for TemperatureThreshold
impl PartialEq for TemperatureThreshold
source§fn eq(&self, other: &TemperatureThreshold) -> bool
fn eq(&self, other: &TemperatureThreshold) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for TemperatureThreshold
impl TryFrom<u32> for TemperatureThreshold
impl Eq 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§
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