Enum hwlocality::object::depth::TypeToDepthError
source · pub enum TypeToDepthError {
Nonexistent,
Multiple,
Unexpected(c_int),
}
Expand description
Error from an hwloc query looking for the depth of a certain object type
Variants§
Nonexistent
No object of the requested type exists in the topology
Multiple
Objects of the requested type exist at different depths in the topology
At the time of writing, this can only happen with ObjectType::Group
.
Unexpected(c_int)
Unexpected special depth value or hwloc error
You can get this error for two different reasons:
- hwloc introduced a new virtual depth, and the version of the Rust bindings that you are using has not yet been updated to handle this new virtual depth. This is the most likely scenario.
- hwloc failed to probe the requested depth and returned a negative value to indicate that, but this negative value is not documented so the Rust bindings couldn’t figure out what’s going on.
Trait Implementations§
source§impl Clone for TypeToDepthError
impl Clone for TypeToDepthError
source§fn clone(&self) -> TypeToDepthError
fn clone(&self) -> TypeToDepthError
Returns a copy 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 TypeToDepthError
impl Debug for TypeToDepthError
source§impl Display for TypeToDepthError
impl Display for TypeToDepthError
source§impl Error for TypeToDepthError
impl Error for TypeToDepthError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for TypeToDepthError
impl Hash for TypeToDepthError
source§impl PartialEq for TypeToDepthError
impl PartialEq for TypeToDepthError
source§fn eq(&self, other: &TypeToDepthError) -> bool
fn eq(&self, other: &TypeToDepthError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypeToDepthError
impl Eq for TypeToDepthError
impl StructuralPartialEq for TypeToDepthError
Auto Trait Implementations§
impl RefUnwindSafe for TypeToDepthError
impl Send for TypeToDepthError
impl Sync for TypeToDepthError
impl Unpin for TypeToDepthError
impl UnwindSafe for TypeToDepthError
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