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
Trait containing all Object methods.
§Implementors
AccessPoint, ActiveConnection, Checkpoint, Device, DhcpConfig, IPConfig, Object, RemoteConnection, WifiP2PPeer, WimaxNsp
Provided Methods§
Sourcefn path(&self) -> GString
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().
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.