//! Shared cloud energy state and snapshot access.
//!
//! Thin wrapper around [`AgedEnergyMap`] generated by the
//! [`impl_energy_state!`] macro. Kept as a distinct nominal type so the
//! daemon's `build_tick_ctx` cannot accidentally confuse cloud-SPECpower
//! readings with Scaphandre-RAPL readings when it merges the snapshots.
// Reuse the monotonic clock from the Scaphandre module so every
// scraper sees the same time source. Visibility matches the kepler
// and redfish modules: `pub(super)` is enough because the only
// consumer is the sibling `cloud_energy::scraper`.
pub use cratemonotonic_ms;
/// Row type expected by the cloud energy scraper when constructing
/// fresh entries. Aliased to the shared [`EnergyRow`] so both the
/// cloud and Scaphandre states share one row definition.
///
/// [`EnergyRow`]: crate::score::energy_state::EnergyRow
pub use crateEnergyRow as ServiceEnergy;
crateimpl_energy_state!