Enum hwlocality::topology::editor::InsertMiscError
source · pub enum InsertMiscError {
FilteredOut,
ForeignParent(ForeignObjectError),
NameContainsNul,
NameAlreadyExists,
}
Available on crate feature
hwloc-2_3_0
only.Expand description
Error returned by TopologyEditor::insert_misc_object()
Variants§
FilteredOut
Attempted to create a Misc object in a topology where they are filtered out
This happens when the type filter for ObjectType::Misc
is set to
TypeFilter::KeepNone
.
ForeignParent(ForeignObjectError)
Specified parent does not belong to this topology
NameContainsNul
Object name contains NUL chars, which hwloc can’t handle
NameAlreadyExists
Object name is already present in the topology
Trait Implementations§
source§impl Clone for InsertMiscError
impl Clone for InsertMiscError
source§fn clone(&self) -> InsertMiscError
fn clone(&self) -> InsertMiscError
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 InsertMiscError
impl Debug for InsertMiscError
source§impl Display for InsertMiscError
impl Display for InsertMiscError
source§impl Error for InsertMiscError
impl Error for InsertMiscError
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 From<ForeignObjectError> for InsertMiscError
impl From<ForeignObjectError> for InsertMiscError
source§fn from(source: ForeignObjectError) -> Self
fn from(source: ForeignObjectError) -> Self
Converts to this type from the input type.
source§impl From<NulError> for InsertMiscError
impl From<NulError> for InsertMiscError
source§impl Hash for InsertMiscError
impl Hash for InsertMiscError
source§impl PartialEq for InsertMiscError
impl PartialEq for InsertMiscError
impl Eq for InsertMiscError
impl StructuralPartialEq for InsertMiscError
Auto Trait Implementations§
impl Freeze for InsertMiscError
impl RefUnwindSafe for InsertMiscError
impl Send for InsertMiscError
impl Sync for InsertMiscError
impl Unpin for InsertMiscError
impl UnwindSafe for InsertMiscError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)