Trait gio::prelude::DBusObjectManagerExt
source · pub trait DBusObjectManagerExt: IsA<DBusObjectManager> + Sealed + 'static {
// Provided methods
fn interface(
&self,
object_path: &str,
interface_name: &str,
) -> Option<DBusInterface> { ... }
fn object(&self, object_path: &str) -> Option<DBusObject> { ... }
fn object_path(&self) -> GString { ... }
fn objects(&self) -> Vec<DBusObject> { ... }
fn connect_interface_added<F: Fn(&Self, &DBusObject, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_interface_removed<F: Fn(&Self, &DBusObject, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_object_added<F: Fn(&Self, &DBusObject) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_object_removed<F: Fn(&Self, &DBusObject) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn object(&self, object_path: &str) -> Option<DBusObject>
fn object(&self, object_path: &str) -> Option<DBusObject>
sourcefn object_path(&self) -> GString
fn object_path(&self) -> GString
sourcefn objects(&self) -> Vec<DBusObject>
fn objects(&self) -> Vec<DBusObject>
Gets all #GDBusObject objects known to @self.
§Returns
A list of #GDBusObject objects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref().
sourcefn connect_interface_added<F: Fn(&Self, &DBusObject, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_interface_added<F: Fn(&Self, &DBusObject, &DBusInterface) + 'static>( &self, f: F, ) -> SignalHandlerId
sourcefn connect_interface_removed<F: Fn(&Self, &DBusObject, &DBusInterface) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_interface_removed<F: Fn(&Self, &DBusObject, &DBusInterface) + 'static>( &self, f: F, ) -> SignalHandlerId
sourcefn connect_object_added<F: Fn(&Self, &DBusObject) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_object_added<F: Fn(&Self, &DBusObject) + 'static>( &self, f: F, ) -> SignalHandlerId
sourcefn connect_object_removed<F: Fn(&Self, &DBusObject) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_object_removed<F: Fn(&Self, &DBusObject) + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.