[][src]Trait gio::DBusInterfaceExt

pub trait DBusInterfaceExt: 'static {
    fn get(&self) -> Option<DBusObject>;
fn get_info(&self) -> Option<DBusInterfaceInfo>;
fn set_object<P: IsA<DBusObject>>(&self, object: Option<&P>); }

Trait containing all DBusInterface methods.

Implementors

DBusInterfaceSkeleton, DBusInterface, DBusProxy

Required methods

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 gobject::ObjectExt::unref.

fn get_info(&self) -> Option<DBusInterfaceInfo>

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

Returns

A DBusInterfaceInfo. Do not free.

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

Sets the DBusObject for self to object.

Note that self will hold a weak reference to object.

object

A DBusObject or None.

Loading content...

Implementors

impl<O: IsA<DBusInterface>> DBusInterfaceExt for O[src]

Loading content...