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