#[repr(C)]pub struct SysInfo {
pub version: u32,
pub flags: u32,
pub cpu_count: usize,
pub page_size: usize,
}
Expand description
Information about the system.
Fields§
§version: u32
The version of this data structure, to allow expansion.
flags: u32
Flags. Currently unused.
cpu_count: usize
The number of CPUs on this system. Hyperthreads are counted as individual CPUs.
page_size: usize
The size of a virtual address page on this system.
Implementations§
Trait Implementations§
source§impl Ord for SysInfo
impl Ord for SysInfo
source§impl PartialOrd for SysInfo
impl PartialOrd for SysInfo
impl Copy for SysInfo
impl Eq for SysInfo
impl StructuralPartialEq for SysInfo
Auto Trait Implementations§
impl Freeze for SysInfo
impl ObjSafe for SysInfo
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnwindSafe for SysInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.