Trait gio::prelude::DBusObjectExt
source · pub trait DBusObjectExt:
IsA<DBusObject>
+ Sealed
+ '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
Object Safety§
This trait is not object safe.