bmw 0.2.0

Battery Manager for Wearable device for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::plugin::Plugin;

pub struct PluginLog;

impl Plugin for PluginLog {
    fn build(&self) {}

    fn process(
        &self,
        t: crate::plugin::EventType,
        gauge: &dyn crate::gauge::Gauge,
        charger: &dyn crate::charger::Charger,
    ) {
        println!("{}", gauge.get_capacity().unwrap());
    }
}