Trait PowerClient

Source
pub trait PowerClient: Send {
    // Required methods
    fn get_power_data(&mut self) -> Result<PowerData, Box<dyn Error>>;
    fn last_request_timestamp(&self) -> Option<SystemTime>;
}

Required Methods§

Source

fn get_power_data(&mut self) -> Result<PowerData, Box<dyn Error>>

Source

fn last_request_timestamp(&self) -> Option<SystemTime>

Returns timestamp that this client sends a DBus request.

Implementors§