pub enum CPUTopologyError {
RawHwlocError(RawHwlocError),
TypeToDepthError(TypeToDepthError),
CPUBindingError(CpuBindingError),
TopologyAllocationFailed,
LogicalCoreIdTooBig {
core_id: LogicalCoreId,
},
PhysicalCoresNotFound,
PhysicalCoreNotFound {
core_id: PhysicalCoreId,
},
LogicalCoresNotFound {
core_id: PhysicalCoreId,
},
CPUSetNotFound {
core_id: PhysicalCoreId,
},
}
Variants§
RawHwlocError(RawHwlocError)
TypeToDepthError(TypeToDepthError)
CPUBindingError(CpuBindingError)
TopologyAllocationFailed
LogicalCoreIdTooBig
Fields
§
core_id: LogicalCoreId
PhysicalCoresNotFound
PhysicalCoreNotFound
Fields
§
core_id: PhysicalCoreId
LogicalCoresNotFound
Fields
§
core_id: PhysicalCoreId
CPUSetNotFound
Fields
§
core_id: PhysicalCoreId
Implementations§
Source§impl CPUTopologyError
impl CPUTopologyError
pub fn physical_core_not_found(core_id: PhysicalCoreId) -> Self
pub fn logical_cores_not_found(core_id: PhysicalCoreId) -> Self
pub fn cpuset_not_found(core_id: PhysicalCoreId) -> Self
pub fn logical_core_too_big(core_id: LogicalCoreId) -> Self
Trait Implementations§
Source§impl Debug for CPUTopologyError
impl Debug for CPUTopologyError
Source§impl Display for CPUTopologyError
impl Display for CPUTopologyError
Source§impl Error for CPUTopologyError
impl Error for CPUTopologyError
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<CpuBindingError> for CPUTopologyError
impl From<CpuBindingError> for CPUTopologyError
Source§fn from(source: CpuBindingError) -> Self
fn from(source: CpuBindingError) -> Self
Converts to this type from the input type.
Source§impl From<RawHwlocError> for CPUTopologyError
impl From<RawHwlocError> for CPUTopologyError
Source§fn from(source: RawHwlocError) -> Self
fn from(source: RawHwlocError) -> Self
Converts to this type from the input type.
Source§impl From<TypeToDepthError> for CPUTopologyError
impl From<TypeToDepthError> for CPUTopologyError
Source§fn from(source: TypeToDepthError) -> Self
fn from(source: TypeToDepthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CPUTopologyError
impl RefUnwindSafe for CPUTopologyError
impl Send for CPUTopologyError
impl Sync for CPUTopologyError
impl Unpin for CPUTopologyError
impl UnwindSafe for CPUTopologyError
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