pub enum TypeToDepthError {
Nonexistent,
Multiple,
}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.
Trait Implementations§
Source§impl Clone for TypeToDepthError
impl Clone for TypeToDepthError
Source§fn clone(&self) -> TypeToDepthError
fn clone(&self) -> TypeToDepthError
Returns a duplicate 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)>
Returns 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
impl Copy for TypeToDepthError
impl Eq for TypeToDepthError
impl StructuralPartialEq for TypeToDepthError
Auto Trait Implementations§
impl Freeze for TypeToDepthError
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