Trait gio::prelude::DBusInterfaceExt

source ·
pub trait DBusInterfaceExt: IsA<DBusInterface> + Sealed + 'static {
    // Provided methods
    fn get(&self) -> Option<DBusObject> { ... }
    fn info(&self) -> DBusInterfaceInfo { ... }
    fn set_object(&self, object: Option<&impl IsA<DBusObject>>) { ... }
}
Expand description

Trait containing all DBusInterface methods.

§Implementors

DBusInterfaceSkeleton, DBusInterface, DBusProxy

Provided Methods§

source

fn get(&self) -> Option<DBusObject>

Gets the #GDBusObject that @self belongs to, if any.

§Returns

A #GDBusObject or None. The returned reference should be freed with g_object_unref().

source

fn info(&self) -> DBusInterfaceInfo

Gets D-Bus introspection information for the D-Bus interface implemented by @self.

§Returns

A #GDBusInterfaceInfo. Do not free.

source

fn set_object(&self, object: Option<&impl IsA<DBusObject>>)

Sets the #GDBusObject for @self to @object.

Note that @self will hold a weak reference to @object.

§object

A #GDBusObject or None.

Object Safety§

This trait is not object safe.

Implementors§