Enum hwlocality::memory::attribute::ValueInputError
source · pub enum ValueInputError {
InconsistentData,
BadInitiators(InitiatorInputError),
ForeignTarget(ForeignObjectError),
}
Available on crate feature
hwloc-2_3_0
only.Expand description
Error returned by MemoryAttributeBuilder::set_values
when the
find_values
callback returns incorrect initiators or targets
Variants§
InconsistentData
The number of provided initiators does not match the number of attribute values
BadInitiators(InitiatorInputError)
Specified initiators for these attribute values are not valid
ForeignTarget(ForeignObjectError)
Some provided targets are TopologyObject
s that do not belong to
the topology being modified
Trait Implementations§
source§impl Clone for ValueInputError
impl Clone for ValueInputError
source§fn clone(&self) -> ValueInputError
fn clone(&self) -> ValueInputError
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 ValueInputError
impl Debug for ValueInputError
source§impl Display for ValueInputError
impl Display for ValueInputError
source§impl Error for ValueInputError
impl Error for ValueInputError
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<InitiatorInputError> for ValueInputError
impl From<InitiatorInputError> for ValueInputError
source§fn from(source: InitiatorInputError) -> Self
fn from(source: InitiatorInputError) -> Self
Converts to this type from the input type.
source§impl Hash for ValueInputError
impl Hash for ValueInputError
source§impl PartialEq for ValueInputError
impl PartialEq for ValueInputError
source§fn eq(&self, other: &ValueInputError) -> bool
fn eq(&self, other: &ValueInputError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ValueInputError
impl StructuralPartialEq for ValueInputError
Auto Trait Implementations§
impl Freeze for ValueInputError
impl RefUnwindSafe for ValueInputError
impl Send for ValueInputError
impl Sync for ValueInputError
impl Unpin for ValueInputError
impl UnwindSafe for ValueInputError
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