#[repr(C)]pub struct system_info {
pub clock_monotonicity: monotonicity,
pub available_parallelism: usize,
pub page_size: usize,
}
Expand description
Information about the system
Fields§
§clock_monotonicity: monotonicity
Supported monotonicity
available_parallelism: usize
Number of CPUs (hardware threads)
page_size: usize
Page size
Implementations§
source§impl system_info
impl system_info
sourcepub fn clock_monotonicity(&self) -> Monotonicity
pub fn clock_monotonicity(&self) -> Monotonicity
Get the monotonicity of the system monotonic clock.
Trait Implementations§
source§impl Clone for system_info
impl Clone for system_info
source§fn clone(&self) -> system_info
fn clone(&self) -> system_info
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for system_info
impl Debug for system_info
impl Copy for system_info
Auto Trait Implementations§
impl Freeze for system_info
impl RefUnwindSafe for system_info
impl Send for system_info
impl Sync for system_info
impl Unpin for system_info
impl UnwindSafe for system_info
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
)