ObjectExt

Trait ObjectExt 

Source
pub trait ObjectExt: IsA<Object> + 'static {
    // Provided methods
    fn path(&self) -> GString { ... }
    fn connect_path_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Provided Methods§

Source

fn path(&self) -> GString

Gets the DBus path of the #NMObject.

§Returns

the object’s path. This is the internal string used by the object, and must not be modified.

Note that the D-Bus path of an NMObject never changes, even if the instance gets removed from the cache. To find out whether the object is still alive/cached, check nm_object_get_client().

Source

fn connect_path_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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§

Source§

impl<O: IsA<Object>> ObjectExt for O