pub enum PerfDomainFlags {
PerfDomainMicrowatts = 1,
PerfDomainSkipInefficiencies = 2,
PerfDomainArtificial = 4,
}Available on crate feature
dev-energymodel only.Expand description
Flags - defines an integer enumeration, with values for each entry occupying a bit, starting from bit 0, (e.g. 1, 2, 4, 8)
Variants§
PerfDomainMicrowatts = 1
The power values are in micro-Watts or some other scale.
PerfDomainSkipInefficiencies = 2
Skip inefficient states when estimating energy consumption.
PerfDomainArtificial = 4
The power values are artificial and might be created by platform missing real power information.
Implementations§
Source§impl PerfDomainFlags
impl PerfDomainFlags
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for PerfDomainFlags
impl Clone for PerfDomainFlags
Source§fn clone(&self) -> PerfDomainFlags
fn clone(&self) -> PerfDomainFlags
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 PerfDomainFlags
impl Debug for PerfDomainFlags
impl Copy for PerfDomainFlags
Auto Trait Implementations§
impl Freeze for PerfDomainFlags
impl RefUnwindSafe for PerfDomainFlags
impl Send for PerfDomainFlags
impl Sync for PerfDomainFlags
impl Unpin for PerfDomainFlags
impl UnsafeUnpin for PerfDomainFlags
impl UnwindSafe for PerfDomainFlags
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