pub struct SystemFeatures {
pub os_info: OsInfo,
pub total_memory: usize,
pub page_size: usize,
pub numa_available: bool,
pub numa_nodes: usize,
pub memory_bandwidth: Option<u64>,
}Expand description
System-level features
Fields§
§os_info: OsInfoOperating system information
total_memory: usizeTotal system memory in bytes
page_size: usizePage size in bytes
numa_available: boolNUMA topology available
numa_nodes: usizeNumber of NUMA nodes
memory_bandwidth: Option<u64>Memory bandwidth estimate in bytes/sec
Trait Implementations§
Source§impl Clone for SystemFeatures
impl Clone for SystemFeatures
Source§fn clone(&self) -> SystemFeatures
fn clone(&self) -> SystemFeatures
Returns a duplicate 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 SystemFeatures
impl Debug for SystemFeatures
Source§impl Default for SystemFeatures
impl Default for SystemFeatures
Source§fn default() -> SystemFeatures
fn default() -> SystemFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemFeatures
impl RefUnwindSafe for SystemFeatures
impl Send for SystemFeatures
impl Sync for SystemFeatures
impl Unpin for SystemFeatures
impl UnwindSafe for SystemFeatures
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more