pub enum AllowSetError {
EmptyCustom,
InvalidCpuset,
InvalidNodeset,
Unsupported,
}Available on crate feature
hwloc-2_3_0 only.Expand description
Error while trying to set the allow-set of a topology
Variants§
EmptyCustom
AllowSet::Custom was specified but both the cpuset and nodeset
were empty, so it isn’t clear how the allow set should change
InvalidCpuset
AllowSet::Custom was specified with a cpuset that would disallow all
CPUs from the topology
InvalidNodeset
AllowSet::Custom was specified with a nodeset that would disallow
all NUMA nodes from the topology
Unsupported
An unsupported AllowSet was passed in
At the time of writing (2024-01-08), this happens when using
AllowSet::LocalRestrictions on any operating system other than Linux
and Solaris.
Trait Implementations§
Source§impl Clone for AllowSetError
impl Clone for AllowSetError
Source§fn clone(&self) -> AllowSetError
fn clone(&self) -> AllowSetError
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 AllowSetError
impl Debug for AllowSetError
Source§impl Display for AllowSetError
impl Display for AllowSetError
Source§impl Error for AllowSetError
impl Error for AllowSetError
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 AllowSetError
impl Hash for AllowSetError
Source§impl PartialEq for AllowSetError
impl PartialEq for AllowSetError
impl Copy for AllowSetError
impl Eq for AllowSetError
impl StructuralPartialEq for AllowSetError
Auto Trait Implementations§
impl Freeze for AllowSetError
impl RefUnwindSafe for AllowSetError
impl Send for AllowSetError
impl Sync for AllowSetError
impl Unpin for AllowSetError
impl UnwindSafe for AllowSetError
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