Enum hwlocality::object::distance::AddDistancesError
source · pub enum AddDistancesError {
BadKind(FlagsError<DistancesKind>),
BadObjectsCount(usize),
ForeignEndpoint(ForeignObjectError),
InconsistentData,
NameContainsNul,
}
hwloc-2_5_0
only.Expand description
Failed to add a new distance matrix to the topology
Variants§
BadKind(FlagsError<DistancesKind>)
hwloc-2_1_0
only.Provided kind
is invalid
Either it contains DistancesKind::HETEROGENEOUS_TYPES
, which should
not be set by you (it will be automatically set by hwloc through
scanning of the provided object list), or it contains several of the
“FROM_” and “MEANS_” kinds, which are mutually exclusive.
BadObjectsCount(usize)
Provided callback returned too many or too few objects
hwloc only supports distances matrices involving 2 to c_uint::MAX
objects.
ForeignEndpoint(ForeignObjectError)
Provided callback returned one or more enpoint objects that do not
belong to this Topology
InconsistentData
Provided callback returned incompatible objects and distances arrays
If we denote N the length of the objects array, the distances array should contain N.pow(2) elements.
NameContainsNul
Provided name
contains NUL chars
Trait Implementations§
source§impl Clone for AddDistancesError
impl Clone for AddDistancesError
source§fn clone(&self) -> AddDistancesError
fn clone(&self) -> AddDistancesError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddDistancesError
impl Debug for AddDistancesError
source§impl Display for AddDistancesError
impl Display for AddDistancesError
source§impl Error for AddDistancesError
impl Error for AddDistancesError
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<'topology> From<&'topology TopologyObject> for AddDistancesError
impl<'topology> From<&'topology TopologyObject> for AddDistancesError
source§fn from(object: &'topology TopologyObject) -> Self
fn from(object: &'topology TopologyObject) -> Self
source§impl From<DistancesKind> for AddDistancesError
impl From<DistancesKind> for AddDistancesError
source§fn from(value: DistancesKind) -> Self
fn from(value: DistancesKind) -> Self
source§impl From<ForeignObjectError> for AddDistancesError
impl From<ForeignObjectError> for AddDistancesError
source§fn from(source: ForeignObjectError) -> Self
fn from(source: ForeignObjectError) -> Self
source§impl From<NulError> for AddDistancesError
impl From<NulError> for AddDistancesError
source§impl From<ParameterError<DistancesKind>> for AddDistancesError
impl From<ParameterError<DistancesKind>> for AddDistancesError
source§fn from(source: FlagsError<DistancesKind>) -> Self
fn from(source: FlagsError<DistancesKind>) -> Self
source§impl Hash for AddDistancesError
impl Hash for AddDistancesError
source§impl PartialEq for AddDistancesError
impl PartialEq for AddDistancesError
source§fn eq(&self, other: &AddDistancesError) -> bool
fn eq(&self, other: &AddDistancesError) -> bool
self
and other
values to be equal, and is used
by ==
.