laminar_core/numa/
error.rs1#[derive(Debug, thiserror::Error)]
7pub enum NumaError {
8 #[error("NUMA allocation failed: {0}")]
10 AllocationFailed(String),
11
12 #[error("Invalid NUMA node: {node} (system has {available} nodes)")]
14 InvalidNode {
15 node: usize,
17 available: usize,
19 },
20
21 #[error("Invalid CPU ID: {cpu} (system has {available} CPUs)")]
23 InvalidCpu {
24 cpu: usize,
26 available: usize,
28 },
29
30 #[error("Memory binding failed: {0}")]
32 BindFailed(String),
33
34 #[error("Topology detection failed: {0}")]
36 TopologyError(String),
37
38 #[error("System call failed: {0}")]
40 SyscallFailed(#[from] std::io::Error),
41
42 #[error("NUMA not available on this platform")]
44 NotAvailable,
45}