Trait gio::prelude::DBusObjectExt [−][src]
pub trait DBusObjectExt: 'static { 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
Required methods
fn interface(&self, interface_name: &str) -> Option<DBusInterface>
fn interface(&self, interface_name: &str) -> Option<DBusInterface>
Gets the D-Bus interface with name interface_name
associated with
self
, if any.
interface_name
A D-Bus interface name.
Returns
None
if not found, otherwise a
DBusInterface
that must be freed with g_object_unref()
.
fn interfaces(&self) -> Vec<DBusInterface>
fn interfaces(&self) -> Vec<DBusInterface>
Gets the D-Bus interfaces associated with self
.
Returns
A list of DBusInterface
instances.
The returned list must be freed by g_list_free()
after each element has been freed
with g_object_unref()
.
fn object_path(&self) -> GString
fn object_path(&self) -> GString
fn 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
fn 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