Enum nvapi::ThermalTarget
source · [−]#[repr(i32)]
pub enum ThermalTarget {
None,
Gpu,
Memory,
PowerSupply,
Board,
VcdBoard,
VcdInlet,
VcdOutlet,
All,
Unknown,
}
Expand description
Used in NV_GPU_THERMAL_SETTINGS
Variants
None
Gpu
GPU core temperature requires NvPhysicalGpuHandle
Memory
GPU memory temperature requires NvPhysicalGpuHandle
PowerSupply
GPU power supply temperature requires NvPhysicalGpuHandle
Board
GPU board ambient temperature requires NvPhysicalGpuHandle
VcdBoard
Visual Computing Device Board temperature requires NvVisualComputingDeviceHandle
VcdInlet
Visual Computing Device Inlet temperature requires NvVisualComputingDeviceHandle
VcdOutlet
Visual Computing Device Outlet temperature requires NvVisualComputingDeviceHandle
All
Unknown
Implementations
sourceimpl ThermalTarget
impl ThermalTarget
pub fn from_raw(raw: i32) -> Result<ThermalTarget, ArgumentRangeError>
pub fn raw(&self) -> i32
pub fn values() -> Cloned<Iter<'static, ThermalTarget>>
Trait Implementations
sourceimpl Clone for ThermalTarget
impl Clone for ThermalTarget
sourcefn clone(&self) -> ThermalTarget
fn clone(&self) -> ThermalTarget
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 ThermalTarget
impl Debug for ThermalTarget
sourceimpl<'de> Deserialize<'de> for ThermalTarget
impl<'de> Deserialize<'de> for ThermalTarget
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ThermalTarget, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ThermalTarget, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ThermalTarget
impl Display for ThermalTarget
sourceimpl Hash for ThermalTarget
impl Hash for ThermalTarget
sourceimpl Into<i32> for ThermalTarget
impl Into<i32> for ThermalTarget
sourceimpl Ord for ThermalTarget
impl Ord for ThermalTarget
sourceimpl PartialEq<ThermalTarget> for ThermalTarget
impl PartialEq<ThermalTarget> for ThermalTarget
sourceimpl PartialOrd<ThermalTarget> for ThermalTarget
impl PartialOrd<ThermalTarget> for ThermalTarget
sourcefn partial_cmp(&self, other: &ThermalTarget) -> Option<Ordering>
fn partial_cmp(&self, other: &ThermalTarget) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ThermalTarget
impl Serialize for ThermalTarget
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ThermalTarget
impl Eq for ThermalTarget
impl StructuralEq for ThermalTarget
impl StructuralPartialEq for ThermalTarget
Auto Trait Implementations
impl RefUnwindSafe for ThermalTarget
impl Send for ThermalTarget
impl Sync for ThermalTarget
impl Unpin for ThermalTarget
impl UnwindSafe for ThermalTarget
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