#[repr(u32)]pub enum TemperatureThreshold {
Shutdown = 0,
Slowdown = 1,
MemoryMax = 2,
GpuMax = 3,
AcousticMin = 4,
AcousticCurrent = 5,
AcousticMax = 6,
GpuCurrent = 7,
}Variants§
Shutdown = 0
Slowdown = 1
MemoryMax = 2
GpuMax = 3
AcousticMin = 4
AcousticCurrent = 5
AcousticMax = 6
GpuCurrent = 7
Trait Implementations§
Source§impl Clone for TemperatureThreshold
impl Clone for TemperatureThreshold
Source§fn clone(&self) -> TemperatureThreshold
fn clone(&self) -> TemperatureThreshold
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 TemperatureThreshold
impl Debug for TemperatureThreshold
Source§impl From<TemperatureThreshold> for nvmlTemperatureThresholds_t
impl From<TemperatureThreshold> for nvmlTemperatureThresholds_t
Source§fn from(value: TemperatureThreshold) -> Self
fn from(value: TemperatureThreshold) -> Self
Converts to this type from the input type.
Source§impl From<TemperatureThreshold> for u32
impl From<TemperatureThreshold> for u32
Source§fn from(enum_value: TemperatureThreshold) -> Self
fn from(enum_value: TemperatureThreshold) -> Self
Converts to this type from the input type.
Source§impl From<nvmlTemperatureThresholds_enum> for TemperatureThreshold
impl From<nvmlTemperatureThresholds_enum> for TemperatureThreshold
Source§fn from(value: nvmlTemperatureThresholds_t) -> Self
fn from(value: nvmlTemperatureThresholds_t) -> Self
Converts to this type from the input type.
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
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for TemperatureThreshold
impl TryFrom<u32> for TemperatureThreshold
Source§type Error = TryFromPrimitiveError<TemperatureThreshold>
type Error = TryFromPrimitiveError<TemperatureThreshold>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TemperatureThreshold
impl TryFromPrimitive for TemperatureThreshold
const NAME: &'static str = "TemperatureThreshold"
type Primitive = u32
type Error = TryFromPrimitiveError<TemperatureThreshold>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TemperatureThreshold
impl Eq for TemperatureThreshold
impl StructuralPartialEq for TemperatureThreshold
Auto Trait Implementations§
impl Freeze for TemperatureThreshold
impl RefUnwindSafe for TemperatureThreshold
impl Send for TemperatureThreshold
impl Sync for TemperatureThreshold
impl Unpin for TemperatureThreshold
impl UnsafeUnpin 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