Struct power_monitor::powerd::client::DBusClient
source · pub struct DBusClient {
last_request_timestamp: Option<SystemTime>,
connection: Connection,
}
Fields§
§last_request_timestamp: Option<SystemTime>
§connection: Connection
Implementations§
source§impl DBusClient
impl DBusClient
Trait Implementations§
source§impl PowerClient for DBusClient
impl PowerClient for DBusClient
source§fn last_request_timestamp(&self) -> Option<SystemTime>
fn last_request_timestamp(&self) -> Option<SystemTime>
Returns timestamp that this client sends a DBus request.
fn get_power_data(&mut self) -> Result<PowerData, Box<dyn Error>>
Auto Trait Implementations§
impl !Freeze for DBusClient
impl !RefUnwindSafe for DBusClient
impl Send for DBusClient
impl !Sync for DBusClient
impl Unpin for DBusClient
impl !UnwindSafe for DBusClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more