Struct hwlocality::topology::support::MemoryBindingSupport
source · pub struct MemoryBindingSupport(/* private fields */);
Expand description
Support for getting and setting thread/process NUMA node bindings
A flag may be set even if the feature isn’t supported in all cases (e.g. binding to random sets of non-contiguous objects).
Implementations§
source§impl MemoryBindingSupport
impl MemoryBindingSupport
sourcepub fn set_current_process(&self) -> bool
pub fn set_current_process(&self) -> bool
Binding the whole current process is supported
sourcepub fn get_current_process(&self) -> bool
pub fn get_current_process(&self) -> bool
Getting the binding of the whole current process is supported
sourcepub fn set_process(&self) -> bool
pub fn set_process(&self) -> bool
Binding a whole given process is supported
sourcepub fn get_process(&self) -> bool
pub fn get_process(&self) -> bool
Getting the binding of a whole given process is supported
sourcepub fn set_current_thread(&self) -> bool
pub fn set_current_thread(&self) -> bool
Binding the current thread only is supported
sourcepub fn get_current_thread(&self) -> bool
pub fn get_current_thread(&self) -> bool
Getting the binding of the current thread only is supported
sourcepub fn get_area_memory_location(&self) -> bool
pub fn get_area_memory_location(&self) -> bool
Getting the last NUMA nodes where a memory area was allocated is supported
sourcepub fn allocate_bound(&self) -> bool
pub fn allocate_bound(&self) -> bool
Allocating a bound memory area is supported
sourcepub fn first_touch_policy(&self) -> bool
pub fn first_touch_policy(&self) -> bool
First-touch policy is supported
sourcepub fn bind_policy(&self) -> bool
pub fn bind_policy(&self) -> bool
Bind policy is supported
sourcepub fn interleave_policy(&self) -> bool
pub fn interleave_policy(&self) -> bool
Interleave policy is supported
sourcepub fn next_touch_policy(&self) -> bool
pub fn next_touch_policy(&self) -> bool
Next-touch migration policy is supported
sourcepub fn migrate_flag(&self) -> bool
pub fn migrate_flag(&self) -> bool
Migration flag is supported
Trait Implementations§
source§impl Arbitrary for MemoryBindingSupport
Available on crate feature proptest
only.
impl Arbitrary for MemoryBindingSupport
proptest
only.§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<[TupleUnion<((u32, Arc<Map<Any, fn(_: bool) -> u8>>), (u32, Arc<RangeInclusive<u8>>))>; 15], fn(_: [u8; 15]) -> MemoryBindingSupport>
type Strategy = Map<[TupleUnion<((u32, Arc<Map<Any, fn(_: bool) -> u8>>), (u32, Arc<RangeInclusive<u8>>))>; 15], fn(_: [u8; 15]) -> MemoryBindingSupport>
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
source§impl Clone for MemoryBindingSupport
impl Clone for MemoryBindingSupport
source§fn clone(&self) -> MemoryBindingSupport
fn clone(&self) -> MemoryBindingSupport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MemoryBindingSupport
impl Debug for MemoryBindingSupport
source§impl Default for MemoryBindingSupport
impl Default for MemoryBindingSupport
source§fn default() -> MemoryBindingSupport
fn default() -> MemoryBindingSupport
source§impl Hash for MemoryBindingSupport
impl Hash for MemoryBindingSupport
source§impl PartialEq for MemoryBindingSupport
impl PartialEq for MemoryBindingSupport
source§fn eq(&self, other: &MemoryBindingSupport) -> bool
fn eq(&self, other: &MemoryBindingSupport) -> bool
self
and other
values to be equal, and is used
by ==
.