pub struct TableBox { /* private fields */ }
Expand description
CPU frequency table owned and pinned in memory, created from a TableBuilder
.
Methods from Deref<Target = Table>§
Sourcepub fn as_raw(&self) -> *mut cpufreq_frequency_table
pub fn as_raw(&self) -> *mut cpufreq_frequency_table
Returns the raw mutable pointer to the C struct cpufreq_frequency_table
.
Sourcepub fn freq(&self, index: TableIndex) -> Result<Hertz>
pub fn freq(&self, index: TableIndex) -> Result<Hertz>
Returns frequency at index
in the Table
.
Sourcepub fn flags(&self, index: TableIndex) -> u32
pub fn flags(&self, index: TableIndex) -> u32
Returns flags at index
in the Table
.
Sourcepub fn data(&self, index: TableIndex) -> u32
pub fn data(&self, index: TableIndex) -> u32
Returns data at index
in the Table
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableBox
impl RefUnwindSafe for TableBox
impl Send for TableBox
impl Sync for TableBox
impl Unpin for TableBox
impl UnwindSafe for TableBox
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