Enum hwlocality::topology::builder::TypeFilterError
source · pub enum TypeFilterError {
CantKeepGroup,
CantIgnore(ObjectType),
StructureIrrelevant,
}
Expand description
Errors that can occur when filtering types
Variants§
CantKeepGroup
Cannot force keeping Group objects with TypeFilter::KeepAll
Groups are designed only to add more structure to the topology.
CantIgnore(ObjectType)
Top-level and bottom-level types cannot be ignored
StructureIrrelevant
Topology structure doesn’t matter for I/O and Misc objects
Trait Implementations§
source§impl Clone for TypeFilterError
impl Clone for TypeFilterError
source§fn clone(&self) -> TypeFilterError
fn clone(&self) -> TypeFilterError
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 TypeFilterError
impl Debug for TypeFilterError
source§impl Display for TypeFilterError
impl Display for TypeFilterError
source§impl Error for TypeFilterError
impl Error for TypeFilterError
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 From<ObjectType> for TypeFilterError
impl From<ObjectType> for TypeFilterError
source§fn from(value: ObjectType) -> Self
fn from(value: ObjectType) -> Self
Converts to this type from the input type.
source§impl Hash for TypeFilterError
impl Hash for TypeFilterError
source§impl PartialEq for TypeFilterError
impl PartialEq for TypeFilterError
source§fn eq(&self, other: &TypeFilterError) -> bool
fn eq(&self, other: &TypeFilterError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypeFilterError
impl Eq for TypeFilterError
impl StructuralPartialEq for TypeFilterError
Auto Trait Implementations§
impl Freeze for TypeFilterError
impl RefUnwindSafe for TypeFilterError
impl Send for TypeFilterError
impl Sync for TypeFilterError
impl Unpin for TypeFilterError
impl UnwindSafe for TypeFilterError
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