The energy-monitor crate provides the EnergyMonitor trait and a dummy implementation called DummyEnergyMonitor.
energy-monitor
EnergyMonitor
DummyEnergyMonitor
None.
Add energy-monitor as a dependency in Cargo.toml:
Cargo.toml
toml [dependencies] energy-monitor = "0.1.0"