#[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