pub struct NumaConfig {
pub policy: NumaPolicy,
pub enabled: bool,
pub track_stats: bool,
}Expand description
NUMA configuration
Fields§
§policy: NumaPolicyAllocation policy
enabled: boolEnable NUMA awareness
track_stats: boolTrack statistics
Implementations§
Source§impl NumaConfig
impl NumaConfig
Sourcepub fn with_policy(self, policy: NumaPolicy) -> Self
pub fn with_policy(self, policy: NumaPolicy) -> Self
Set policy
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Enable NUMA awareness
Sourcepub fn with_stats(self, track: bool) -> Self
pub fn with_stats(self, track: bool) -> Self
Enable statistics tracking
Trait Implementations§
Source§impl Clone for NumaConfig
impl Clone for NumaConfig
Source§fn clone(&self) -> NumaConfig
fn clone(&self) -> NumaConfig
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 NumaConfig
impl Debug for NumaConfig
Auto Trait Implementations§
impl Freeze for NumaConfig
impl RefUnwindSafe for NumaConfig
impl Send for NumaConfig
impl Sync for NumaConfig
impl Unpin for NumaConfig
impl UnsafeUnpin for NumaConfig
impl UnwindSafe for NumaConfig
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