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

Provided Methods§

source

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

Gets the DBusObject that self belongs to, if any.

Returns

A DBusObject 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 DBusInterfaceInfo. Do not free.

source

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

Sets the DBusObject for self to object.

Note that self will hold a weak reference to object.

object

A DBusObject or None.

Object Safety§

This trait is not object safe.

Implementors§