Enum hwlocality::cpu::binding::CpuBindingError
source · pub enum CpuBindingError {
BadObject(CpuBoundObject),
BadFlags(FlagsError<CpuBindingFlags>),
BadCpuSet(CpuSet),
UnsupportedCpuSet(CpuBoundObject, CpuSet),
}
Expand description
Errors that can occur when manipulating process/thread CPU bindings
Variants§
BadObject(CpuBoundObject)
Cannot query or set CPU bindings for this kind of object
This error might not be reported if CpuBindingFlags::STRICT
is not
set. Instead, the implementation is allowed to try to use a slightly
different operation (with side-effects, larger object, etc.) when the
requested operation is not exactly supported.
BadFlags(FlagsError<CpuBindingFlags>)
Requested CPU binding flags are not valid in this context
Not all CPU binding flag combinations make sense, either in isolation or
in the context of a particular binding method. Please cross-check the
documentation of CpuBindingFlags
as well as that of the method
you were trying to call for more information.
BadCpuSet(CpuSet)
The target cpuset is invalid
CPU binding commands cannot bind processes to an empty cpuset, or a cpuset that contains invalid CPU indices for the present topology.
This error should only be reported when trying to set CPU bindings.
UnsupportedCpuSet(CpuBoundObject, CpuSet)
Cannot bind the requested object to the target cpuset
Operating systems can have various restrictions here, e.g. can only bind to one CPU, one NUMA node, etc.
This error should only be reported when trying to set CPU bindings.
This error might not be reported if CpuBindingFlags::STRICT
is not
set. Instead, the implementation is allowed to try to use a slightly
different operation (with side-effects, smaller binding set, etc.) when
the requested operation is not exactly supported.
Trait Implementations§
source§impl Clone for CpuBindingError
impl Clone for CpuBindingError
source§fn clone(&self) -> CpuBindingError
fn clone(&self) -> CpuBindingError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CpuBindingError
impl Debug for CpuBindingError
source§impl Display for CpuBindingError
impl Display for CpuBindingError
source§impl Error for CpuBindingError
impl Error for CpuBindingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<CpuBindingFlags> for CpuBindingError
impl From<CpuBindingFlags> for CpuBindingError
source§fn from(value: CpuBindingFlags) -> Self
fn from(value: CpuBindingFlags) -> Self
source§impl From<CpuBoundObject> for CpuBindingError
impl From<CpuBoundObject> for CpuBindingError
source§fn from(value: CpuBoundObject) -> Self
fn from(value: CpuBoundObject) -> Self
source§impl From<ParameterError<CpuBindingFlags>> for CpuBindingError
impl From<ParameterError<CpuBindingFlags>> for CpuBindingError
source§fn from(source: FlagsError<CpuBindingFlags>) -> Self
fn from(source: FlagsError<CpuBindingFlags>) -> Self
source§impl PartialEq for CpuBindingError
impl PartialEq for CpuBindingError
source§fn eq(&self, other: &CpuBindingError) -> bool
fn eq(&self, other: &CpuBindingError) -> bool
self
and other
values to be equal, and is used
by ==
.