Enum hwlocality::object::search::LocalObjectError
source · pub enum LocalObjectError {
ForeignSource(ForeignObjectError),
IncompatibleTypes(ObjectType, ObjectType),
StringContainsNul,
}
Available on crate feature
hwloc-2_5_0
only.Expand description
Error returned by Topology::object_with_same_locality()
Variants§
ForeignSource(ForeignObjectError)
Target object does not belong to this topology
IncompatibleTypes(ObjectType, ObjectType)
Source object is a normal/memory object and target type is an I/O or Misc type, or vice-versa
StringContainsNul
Subtype or name prefix string contains a NUL char
Trait Implementations§
source§impl Clone for LocalObjectError
impl Clone for LocalObjectError
source§fn clone(&self) -> LocalObjectError
fn clone(&self) -> LocalObjectError
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 LocalObjectError
impl Debug for LocalObjectError
source§impl Display for LocalObjectError
impl Display for LocalObjectError
source§impl Error for LocalObjectError
impl Error for LocalObjectError
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<'topology> From<&'topology TopologyObject> for LocalObjectError
impl<'topology> From<&'topology TopologyObject> for LocalObjectError
source§fn from(object: &'topology TopologyObject) -> Self
fn from(object: &'topology TopologyObject) -> Self
Converts to this type from the input type.
source§impl From<ForeignObjectError> for LocalObjectError
impl From<ForeignObjectError> for LocalObjectError
source§fn from(source: ForeignObjectError) -> Self
fn from(source: ForeignObjectError) -> Self
Converts to this type from the input type.
source§impl From<NulError> for LocalObjectError
impl From<NulError> for LocalObjectError
source§impl PartialEq for LocalObjectError
impl PartialEq for LocalObjectError
source§fn eq(&self, other: &LocalObjectError) -> bool
fn eq(&self, other: &LocalObjectError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LocalObjectError
impl StructuralPartialEq for LocalObjectError
Auto Trait Implementations§
impl Freeze for LocalObjectError
impl RefUnwindSafe for LocalObjectError
impl Send for LocalObjectError
impl Sync for LocalObjectError
impl Unpin for LocalObjectError
impl UnwindSafe for LocalObjectError
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