gio::prelude

Trait DBusInterfaceExt

Source
pub trait DBusInterfaceExt: IsA<DBusInterface> + '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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§