Struct energy_monitor::dummy::DummyEnergyMonitor
[−]
[src]
pub struct DummyEnergyMonitor;
Trait Implementations
impl Copy for DummyEnergyMonitor
[src]
impl Clone for DummyEnergyMonitor
[src]
fn clone(&self) -> DummyEnergyMonitor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for DummyEnergyMonitor
[src]
impl EnergyMonitor for DummyEnergyMonitor
[src]
fn read_uj(&self) -> Result<u64, &'static str>
Read the energy value in microjoules
fn source(&self) -> String
Get the energy monitoring source as a String
fn interval_us(&self) -> u64
Get the energy monitor's refresh interval in microseconds. This can be used as a minimum polling period. Read more
fn precision_uj(&self) -> u64
Get the energy monitor's precision in microjoules.
fn is_exclusive(&self) -> bool
Get whether energy monitor requires exclusive access.