Struct proj_billing::billing::three_party::MeterState
[−]
[src]
pub struct MeterState<T: Read + Write> { /* fields omitted */ }
State associated with the smart meter
Methods
impl<T: Read + Write> MeterState<T>
[src]
fn new(channel: T, sk: SecretKey, params: DHParams) -> MeterState<T>
Create a new MeterState object
fn consume(&mut self, consumption: &IntegerConsumption)
Called once every hour with the consumption incurred in that hour