pub enum PerfState<'a> {
Pad(&'a [u8]),
Performance(u64),
Frequency(u64),
Power(u64),
Cost(u64),
Flags(u64),
}Available on crate feature
dev-energymodel only.Variants§
Pad(&'a [u8])
Performance(u64)
CPU performance (capacity) at a given frequency.
Frequency(u64)
The frequency in KHz, for consistency with CPUFreq.
Power(u64)
The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
Cost(u64)
The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
Flags(u64)
Bitmask of performance state flags.
Associated type: PerfStateFlags (enum)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PerfState<'a>
impl<'a> RefUnwindSafe for PerfState<'a>
impl<'a> Send for PerfState<'a>
impl<'a> Sync for PerfState<'a>
impl<'a> Unpin for PerfState<'a>
impl<'a> UnsafeUnpin for PerfState<'a>
impl<'a> UnwindSafe for PerfState<'a>
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