//! Intel RAPL metric source for Joule Profiler.
//!
//! This module provides several implementations of [`MetricReader`] for
//! collecting energy metrics from Intel RAPL (Running Average Power Limit) domains.
//!
//! # Backends
//!
//! This module supports **two backends** for reading energy metrics:
//! - [`powercap`] - uses the Linux `powercap` interface for energy readings.
//! - [`perf`] - uses `perf_event` counters (`perf_event_open`) for RAPL domains.
use ;
pub use RaplError;
/// Custom result type for Rapl
type Result<T> = Result;
const MICRO_JOULE_UNIT: MetricUnit = MetricUnit ;
const RAPL_SOURCE_ID: &str = "rapl";