#[repr(u32)]pub enum CoolerTarget {
None = 1,
Gpu = 2,
Memory = 4,
PowerSupply = 8,
GpuRelated = 14,
}Variants§
Trait Implementations§
Source§impl Clone for CoolerTarget
impl Clone for CoolerTarget
Source§fn clone(&self) -> CoolerTarget
fn clone(&self) -> CoolerTarget
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 CoolerTarget
impl Debug for CoolerTarget
Source§impl From<CoolerTarget> for nvmlCoolerTarget_t
impl From<CoolerTarget> for nvmlCoolerTarget_t
Source§fn from(value: CoolerTarget) -> Self
fn from(value: CoolerTarget) -> Self
Converts to this type from the input type.
Source§impl From<CoolerTarget> for u32
impl From<CoolerTarget> for u32
Source§fn from(enum_value: CoolerTarget) -> Self
fn from(enum_value: CoolerTarget) -> Self
Converts to this type from the input type.
Source§impl From<nvmlCoolerTarget_enum> for CoolerTarget
impl From<nvmlCoolerTarget_enum> for CoolerTarget
Source§fn from(value: nvmlCoolerTarget_t) -> Self
fn from(value: nvmlCoolerTarget_t) -> Self
Converts to this type from the input type.
Source§impl Hash for CoolerTarget
impl Hash for CoolerTarget
Source§impl PartialEq for CoolerTarget
impl PartialEq for CoolerTarget
Source§fn eq(&self, other: &CoolerTarget) -> bool
fn eq(&self, other: &CoolerTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for CoolerTarget
impl TryFrom<u32> for CoolerTarget
Source§type Error = TryFromPrimitiveError<CoolerTarget>
type Error = TryFromPrimitiveError<CoolerTarget>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CoolerTarget
impl TryFromPrimitive for CoolerTarget
const NAME: &'static str = "CoolerTarget"
type Primitive = u32
type Error = TryFromPrimitiveError<CoolerTarget>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CoolerTarget
impl Eq for CoolerTarget
impl StructuralPartialEq for CoolerTarget
Auto Trait Implementations§
impl Freeze for CoolerTarget
impl RefUnwindSafe for CoolerTarget
impl Send for CoolerTarget
impl Sync for CoolerTarget
impl Unpin for CoolerTarget
impl UnsafeUnpin for CoolerTarget
impl UnwindSafe for CoolerTarget
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