#[repr(i32)]pub enum PstateClockType {
Single = 0,
Range = 1,
}Expand description
Used to identify clock type
Variants§
Single = 0
Clock domains that use single frequency value within given pstate
Range = 1
Clock domains that allow range of frequency values within given pstate
Implementations§
Source§impl PstateClockType
impl PstateClockType
pub fn from_raw( raw: NV_GPU_PERF_PSTATE20_CLOCK_TYPE_ID, ) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_GPU_PERF_PSTATE20_CLOCK_TYPE_ID
pub fn values() -> Cloned<Iter<'static, Self>>
Trait Implementations§
Source§impl Clone for PstateClockType
impl Clone for PstateClockType
Source§fn clone(&self) -> PstateClockType
fn clone(&self) -> PstateClockType
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 PstateClockType
impl Debug for PstateClockType
Source§impl<'de> Deserialize<'de> for PstateClockType
impl<'de> Deserialize<'de> for PstateClockType
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 Hash for PstateClockType
impl Hash for PstateClockType
Source§impl Into<i32> for PstateClockType
impl Into<i32> for PstateClockType
Source§fn into(self) -> NV_GPU_PERF_PSTATE20_CLOCK_TYPE_ID
fn into(self) -> NV_GPU_PERF_PSTATE20_CLOCK_TYPE_ID
Converts this type into the (usually inferred) input type.
Source§impl Ord for PstateClockType
impl Ord for PstateClockType
Source§fn cmp(&self, other: &PstateClockType) -> Ordering
fn cmp(&self, other: &PstateClockType) -> 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 PstateClockType
impl PartialEq for PstateClockType
Source§impl PartialOrd for PstateClockType
impl PartialOrd for PstateClockType
Source§impl Serialize for PstateClockType
impl Serialize for PstateClockType
impl Copy for PstateClockType
impl Eq for PstateClockType
impl StructuralPartialEq for PstateClockType
Auto Trait Implementations§
impl Freeze for PstateClockType
impl RefUnwindSafe for PstateClockType
impl Send for PstateClockType
impl Sync for PstateClockType
impl Unpin for PstateClockType
impl UnwindSafe for PstateClockType
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