#[repr(u32)]pub enum CpuPerfLimitType {
Rate = 0,
Power = 1,
}Variants§
Rate = 0
Represents a limit on the processing rate of the CPU. Values for min and max are interpreted to be in the range [0, MAX_RATE], where MAX_RATE is the value of the processing_rate field of the fastest power level in the same power domain. Values above MAX_RATE are clamped to MAX_RATE.
Power = 1
Represents a limit on the effective power of the CPU. Values for min and max are in units of nanowatts.
Implementations§
Trait Implementations§
Source§impl Clone for CpuPerfLimitType
impl Clone for CpuPerfLimitType
Source§fn clone(&self) -> CpuPerfLimitType
fn clone(&self) -> CpuPerfLimitType
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 CpuPerfLimitType
impl Debug for CpuPerfLimitType
Source§impl PartialEq for CpuPerfLimitType
impl PartialEq for CpuPerfLimitType
impl Copy for CpuPerfLimitType
impl Eq for CpuPerfLimitType
impl IntoBytes for CpuPerfLimitType
impl StructuralPartialEq for CpuPerfLimitType
Auto Trait Implementations§
impl Freeze for CpuPerfLimitType
impl RefUnwindSafe for CpuPerfLimitType
impl Send for CpuPerfLimitType
impl Sync for CpuPerfLimitType
impl Unpin for CpuPerfLimitType
impl UnwindSafe for CpuPerfLimitType
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