pub fn bus_get_sync<P: IsA<Cancellable>>(
) -> Result<DBusConnection, Error>
Synchronously connects to the message bus specified by
Note that the returned object may shared with other callers,
e.g. if two separate parts of a process calls this function with
bus_type, they will share the same object.
This is a synchronous failable function. See
g_bus_get_finish() for the asynchronous version.
The returned object is a singleton, that is, shared with other
bus_type. In the
event that you need a private message bus connection, use