pub enum PerfDomain<'a> {
Pad(&'a [u8]),
PerfDomainId(u32),
Flags(u64),
Cpus(u64),
}Available on crate feature
dev-energymodel only.Variants§
Pad(&'a [u8])
PerfDomainId(u32)
A unique ID number for each performance domain.
Flags(u64)
Bitmask of performance domain flags.
Associated type: PerfDomainFlags (enum)
Cpus(u64)
CPUs that belong to this performance domain.
Attribute may repeat multiple times (treat it as array)
Implementations§
Source§impl PerfDomain<'_>
impl PerfDomain<'_>
pub fn new<'a>(buf: &'a [u8]) -> IterablePerfDomain<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for PerfDomain<'a>
impl<'a> Clone for PerfDomain<'a>
Source§fn clone(&self) -> PerfDomain<'a>
fn clone(&self) -> PerfDomain<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for PerfDomain<'a>
impl<'a> RefUnwindSafe for PerfDomain<'a>
impl<'a> Send for PerfDomain<'a>
impl<'a> Sync for PerfDomain<'a>
impl<'a> Unpin for PerfDomain<'a>
impl<'a> UnsafeUnpin for PerfDomain<'a>
impl<'a> UnwindSafe for PerfDomain<'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