Skip to main content

DBusObjectExt

Trait DBusObjectExt 

Source
pub trait DBusObjectExt: IsA<DBusObject> + 'static {
    // Provided methods
    fn interface(&self, interface_name: &str) -> Option<DBusInterface> { ... }
    fn interfaces(&self) -> Vec<DBusInterface> { ... }
    fn object_path(&self) -> GString { ... }
    fn connect_interface_added<F>(&self, f: F) -> SignalHandlerId
       where F: Fn(&Self, &DBusInterface) + 'static { ... }
    fn connect_interface_removed<F>(&self, f: F) -> SignalHandlerId
       where F: Fn(&Self, &DBusInterface) + 'static { ... }
}

Provided Methods§

Source

fn interface(&self, interface_name: &str) -> Option<DBusInterface>

Source

fn interfaces(&self) -> Vec<DBusInterface>

Source

fn object_path(&self) -> GString

Source

fn connect_interface_added<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &DBusInterface) + 'static,

Source

fn connect_interface_removed<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &DBusInterface) + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<O> DBusObjectExt for O
where O: IsA<DBusObject>,