#[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
Represents the thermal sensor targets.
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
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 (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 ThermalTarget
impl Debug for ThermalTarget
Source§impl From<ThermalTarget> for i32
impl From<ThermalTarget> for i32
Source§fn from(enum_value: ThermalTarget) -> Self
fn from(enum_value: ThermalTarget) -> Self
Converts to this type from the input type.
Source§impl From<ThermalTarget> for nvmlThermalTarget_t
impl From<ThermalTarget> for nvmlThermalTarget_t
Source§fn from(value: ThermalTarget) -> Self
fn from(value: ThermalTarget) -> Self
Converts to this type from the input type.
Source§impl From<nvmlThermalTarget_t> for ThermalTarget
impl From<nvmlThermalTarget_t> for ThermalTarget
Source§fn from(value: nvmlThermalTarget_t) -> Self
fn from(value: nvmlThermalTarget_t) -> Self
Converts to this type from the input type.
Source§impl Hash for ThermalTarget
impl Hash for ThermalTarget
Source§impl PartialEq for ThermalTarget
impl PartialEq for ThermalTarget
Source§fn eq(&self, other: &ThermalTarget) -> bool
fn eq(&self, other: &ThermalTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<i32> for ThermalTarget
impl TryFrom<i32> for ThermalTarget
Source§type Error = TryFromPrimitiveError<ThermalTarget>
type Error = TryFromPrimitiveError<ThermalTarget>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ThermalTarget
impl TryFromPrimitive for ThermalTarget
const NAME: &'static str = "ThermalTarget"
type Primitive = i32
type Error = TryFromPrimitiveError<ThermalTarget>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
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 UnsafeUnpin 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