#[repr(i32)]pub enum CoolerControl {
None = 0,
Toggle = 1,
Variable = 2,
}Variants§
Implementations§
Source§impl CoolerControl
impl CoolerControl
pub fn from_raw(raw: NV_COOLER_CONTROL) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_COOLER_CONTROL
pub fn values() -> Cloned<Iter<'static, Self>>
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 · 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<'de> Deserialize<'de> for CoolerControl
impl<'de> Deserialize<'de> for CoolerControl
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 CoolerControl
impl Display for CoolerControl
Source§impl Hash for CoolerControl
impl Hash for CoolerControl
Source§impl Into<i32> for CoolerControl
impl Into<i32> for CoolerControl
Source§fn into(self) -> NV_COOLER_CONTROL
fn into(self) -> NV_COOLER_CONTROL
Converts this type into the (usually inferred) input type.
Source§impl Ord for CoolerControl
impl Ord for CoolerControl
Source§fn cmp(&self, other: &CoolerControl) -> Ordering
fn cmp(&self, other: &CoolerControl) -> 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 CoolerControl
impl PartialEq for CoolerControl
Source§impl PartialOrd for CoolerControl
impl PartialOrd for CoolerControl
Source§impl Serialize for CoolerControl
impl Serialize for CoolerControl
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 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