Struct power_monitor::powerd::monitor::DBusMonitor
source · pub struct DBusMonitor {
connection: Connection,
connection_fd: RawFd,
previous_data: Option<BatteryData>,
}
Fields§
§connection: Connection
§connection_fd: RawFd
§previous_data: Option<BatteryData>
Implementations§
source§impl DBusMonitor
impl DBusMonitor
Trait Implementations§
source§impl AsRawDescriptor for DBusMonitor
impl AsRawDescriptor for DBusMonitor
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
source§impl PowerMonitor for DBusMonitor
impl PowerMonitor for DBusMonitor
source§impl ReadNotifier for DBusMonitor
impl ReadNotifier for DBusMonitor
source§fn get_read_notifier(&self) -> &dyn AsRawDescriptor
fn get_read_notifier(&self) -> &dyn AsRawDescriptor
Gets a descriptor that can be used in EventContext to wait for events to be available (e.g.
to avoid receive_events blocking).
Auto Trait Implementations§
impl !RefUnwindSafe for DBusMonitor
impl !Send for DBusMonitor
impl !Sync for DBusMonitor
impl Unpin for DBusMonitor
impl !UnwindSafe for DBusMonitor
Blanket Implementations§
§impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
§fn as_raw_descriptors(&self) -> Vec<i32>
fn as_raw_descriptors(&self) -> Vec<i32>
Returns the underlying raw descriptors. Read more
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