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: Fn(&Self, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_interface_removed<F: Fn(&Self, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
Sourcefn interface(&self, interface_name: &str) -> Option<DBusInterface>
fn interface(&self, interface_name: &str) -> Option<DBusInterface>
Sourcefn interfaces(&self) -> Vec<DBusInterface>
fn interfaces(&self) -> Vec<DBusInterface>
Gets the D-Bus interfaces associated with @self.
§Returns
A list of #GDBusInterface instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().
Sourcefn object_path(&self) -> GString
fn object_path(&self) -> GString
Sourcefn connect_interface_added<F: Fn(&Self, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_interface_added<F: Fn(&Self, &DBusInterface) + 'static>( &self, f: F, ) -> SignalHandlerId
Sourcefn connect_interface_removed<F: Fn(&Self, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_interface_removed<F: Fn(&Self, &DBusInterface) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.