#[repr(i32)]pub enum ThermalTarget {
None = 0,
Gpu = 1,
Memory = 2,
PowerSupply = 4,
Board = 8,
VcdBoard = 9,
VcdInlet = 10,
VcdOutlet = 11,
All = 15,
Unknown = -1,
}Expand description
Used in NV_GPU_THERMAL_SETTINGS
Variants§
None = 0
Gpu = 1
GPU core temperature requires NvPhysicalGpuHandle
Memory = 2
GPU memory temperature requires NvPhysicalGpuHandle
PowerSupply = 4
GPU power supply temperature requires NvPhysicalGpuHandle
Board = 8
GPU board ambient temperature requires NvPhysicalGpuHandle
VcdBoard = 9
Visual Computing Device Board temperature requires NvVisualComputingDeviceHandle
VcdInlet = 10
Visual Computing Device Inlet temperature requires NvVisualComputingDeviceHandle
VcdOutlet = 11
Visual Computing Device Outlet temperature requires NvVisualComputingDeviceHandle
All = 15
Unknown = -1
Implementations§
Source§impl ThermalTarget
impl ThermalTarget
pub fn from_raw(raw: NV_THERMAL_TARGET) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_THERMAL_TARGET
pub fn values() -> Cloned<Iter<'static, Self>>
Trait Implementations§
Source§impl Clone for ThermalTarget
impl Clone for ThermalTarget
Source§fn clone(&self) -> ThermalTarget
fn clone(&self) -> ThermalTarget
Returns a duplicate 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 ThermalTarget
impl Debug for ThermalTarget
Source§impl<'de> Deserialize<'de> for ThermalTarget
impl<'de> Deserialize<'de> for ThermalTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThermalTarget
impl Display for ThermalTarget
Source§impl Hash for ThermalTarget
impl Hash for ThermalTarget
Source§impl Into<i32> for ThermalTarget
impl Into<i32> for ThermalTarget
Source§fn into(self) -> NV_THERMAL_TARGET
fn into(self) -> NV_THERMAL_TARGET
Converts this type into the (usually inferred) input type.
Source§impl Ord for ThermalTarget
impl Ord for ThermalTarget
Source§fn cmp(&self, other: &ThermalTarget) -> Ordering
fn cmp(&self, other: &ThermalTarget) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThermalTarget
impl PartialEq for ThermalTarget
Source§impl PartialOrd for ThermalTarget
impl PartialOrd for ThermalTarget
Source§impl Serialize for ThermalTarget
impl Serialize for ThermalTarget
impl Copy for ThermalTarget
impl Eq for ThermalTarget
impl StructuralPartialEq for ThermalTarget
Auto Trait Implementations§
impl Freeze for ThermalTarget
impl RefUnwindSafe for ThermalTarget
impl Send for ThermalTarget
impl Sync for ThermalTarget
impl Unpin for ThermalTarget
impl UnwindSafe for ThermalTarget
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