pub struct Cpu<'b, 'a: 'b> { /* private fields */ }
Expand description
Represents a /cpus/cpu*
node with specific helper methods
Implementations§
Source§impl<'b, 'a: 'b> Cpu<'b, 'a>
impl<'b, 'a: 'b> Cpu<'b, 'a>
Sourcepub fn clock_frequency(self) -> usize
pub fn clock_frequency(self) -> usize
clock-frequency
property
Sourcepub fn timebase_frequency(self) -> usize
pub fn timebase_frequency(self) -> usize
timebase-frequency
property
Sourcepub 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
Sourcepub fn property(self, name: &str) -> Option<NodeProperty<'a>>
pub fn property(self, name: &str) -> Option<NodeProperty<'a>>
Attempts to find the a property by its name
Trait Implementations§
impl<'b, 'a: 'b> Copy for Cpu<'b, 'a>
Auto Trait Implementations§
impl<'b, 'a> Freeze for Cpu<'b, 'a>
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