#[repr(i32)]pub enum ClockFrequencyType {
Current = 0,
Base = 1,
Boost = 2,
Count = 3,
}Expand description
Used in NvAPI_GPU_GetAllClockFrequencies()
Variants§
Implementations§
Source§impl ClockFrequencyType
impl ClockFrequencyType
pub fn from_raw( raw: NV_GPU_CLOCK_FREQUENCIES_CLOCK_TYPE, ) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_GPU_CLOCK_FREQUENCIES_CLOCK_TYPE
pub fn values() -> Cloned<Iter<'static, Self>>
Trait Implementations§
Source§impl Clone for ClockFrequencyType
impl Clone for ClockFrequencyType
Source§fn clone(&self) -> ClockFrequencyType
fn clone(&self) -> ClockFrequencyType
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 ClockFrequencyType
impl Debug for ClockFrequencyType
Source§impl<'de> Deserialize<'de> for ClockFrequencyType
impl<'de> Deserialize<'de> for ClockFrequencyType
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 ClockFrequencyType
impl Display for ClockFrequencyType
Source§impl Hash for ClockFrequencyType
impl Hash for ClockFrequencyType
Source§impl Into<i32> for ClockFrequencyType
impl Into<i32> for ClockFrequencyType
Source§fn into(self) -> NV_GPU_CLOCK_FREQUENCIES_CLOCK_TYPE
fn into(self) -> NV_GPU_CLOCK_FREQUENCIES_CLOCK_TYPE
Converts this type into the (usually inferred) input type.
Source§impl Ord for ClockFrequencyType
impl Ord for ClockFrequencyType
Source§fn cmp(&self, other: &ClockFrequencyType) -> Ordering
fn cmp(&self, other: &ClockFrequencyType) -> 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 ClockFrequencyType
impl PartialEq for ClockFrequencyType
Source§impl PartialOrd for ClockFrequencyType
impl PartialOrd for ClockFrequencyType
Source§impl Serialize for ClockFrequencyType
impl Serialize for ClockFrequencyType
impl Copy for ClockFrequencyType
impl Eq for ClockFrequencyType
impl StructuralPartialEq for ClockFrequencyType
Auto Trait Implementations§
impl Freeze for ClockFrequencyType
impl RefUnwindSafe for ClockFrequencyType
impl Send for ClockFrequencyType
impl Sync for ClockFrequencyType
impl Unpin for ClockFrequencyType
impl UnwindSafe for ClockFrequencyType
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