pub struct Cpu<'b, 'a>where
'a: 'b,{ /* private fields */ }
Expand description
Represents a /cpus/cpu*
node with specific helper methods
Implementations§
§impl<'b, 'a> Cpu<'b, 'a>where
'a: 'b,
impl<'b, 'a> Cpu<'b, 'a>where
'a: 'b,
pub fn ids(self) -> CpuIds<'a>
pub fn ids(self) -> CpuIds<'a>
Return the IDs for the given CPU
pub fn clock_frequency(self) -> usize
pub fn clock_frequency(self) -> usize
clock-frequency
property
pub fn timebase_frequency(self) -> usize
pub fn timebase_frequency(self) -> usize
timebase-frequency
property
pub fn properties(self) -> impl Iterator<Item = NodeProperty<'a>> + 'b
pub fn properties(self) -> impl Iterator<Item = NodeProperty<'a>> + 'b
Returns an iterator over all of the properties for the CPU node
Trait Implementations§
impl<'b, 'a> Copy for Cpu<'b, 'a>where
'a: 'b,
Auto Trait Implementations§
impl<'b, 'a> RefUnwindSafe for Cpu<'b, 'a>
impl<'b, 'a> Send for Cpu<'b, 'a>
impl<'b, 'a> Sync for Cpu<'b, 'a>
impl<'b, 'a> Unpin for Cpu<'b, 'a>
impl<'b, 'a> UnwindSafe for Cpu<'b, '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