Struct hwlocality::topology::support::CpuBindingSupport
source · pub struct CpuBindingSupport(/* private fields */);
Expand description
Support for getting and setting thread/process CPU 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 CpuBindingSupport
impl CpuBindingSupport
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 set_thread(&self) -> bool
pub fn set_thread(&self) -> bool
Binding a given thread only is supported
sourcepub fn get_thread(&self) -> bool
pub fn get_thread(&self) -> bool
Getting the binding of a given thread only is supported
sourcepub fn get_current_process_last_cpu_location(&self) -> bool
pub fn get_current_process_last_cpu_location(&self) -> bool
Getting the last processors where the whole current process ran is supported
sourcepub fn get_process_last_cpu_location(&self) -> bool
pub fn get_process_last_cpu_location(&self) -> bool
Getting the last processors where a whole process ran is supported
sourcepub fn get_current_thread_last_cpu_location(&self) -> bool
pub fn get_current_thread_last_cpu_location(&self) -> bool
Getting the last processors where the current thread ran is supported
Trait Implementations§
source§impl Arbitrary for CpuBindingSupport
Available on crate feature proptest
only.
impl Arbitrary for CpuBindingSupport
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>>))>; 11], fn(_: [u8; 11]) -> CpuBindingSupport>
type Strategy = Map<[TupleUnion<((u32, Arc<Map<Any, fn(_: bool) -> u8>>), (u32, Arc<RangeInclusive<u8>>))>; 11], fn(_: [u8; 11]) -> CpuBindingSupport>
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 CpuBindingSupport
impl Clone for CpuBindingSupport
source§fn clone(&self) -> CpuBindingSupport
fn clone(&self) -> CpuBindingSupport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CpuBindingSupport
impl Debug for CpuBindingSupport
source§impl Default for CpuBindingSupport
impl Default for CpuBindingSupport
source§fn default() -> CpuBindingSupport
fn default() -> CpuBindingSupport
source§impl Hash for CpuBindingSupport
impl Hash for CpuBindingSupport
source§impl PartialEq for CpuBindingSupport
impl PartialEq for CpuBindingSupport
source§fn eq(&self, other: &CpuBindingSupport) -> bool
fn eq(&self, other: &CpuBindingSupport) -> bool
self
and other
values to be equal, and is used
by ==
.