laminar_core/numa/error.rs
1//! # NUMA Error Types
2//!
3//! Error types for NUMA-aware memory operations.
4
5/// Errors that can occur during NUMA operations.
6#[derive(Debug, thiserror::Error)]
7pub enum NumaError {
8 /// Topology detection failed
9 #[error("Topology detection failed: {0}")]
10 TopologyError(String),
11
12 /// System call failed
13 #[error("System call failed: {0}")]
14 SyscallFailed(#[from] std::io::Error),
15
16 /// NUMA memory bind failed
17 #[error("NUMA memory bind failed: {0}")]
18 BindFailed(std::io::Error),
19}