Function gio::functions::dbus_address_get_stream_sync

source ·
pub fn dbus_address_get_stream_sync(
    address: &str,
    cancellable: Option<&impl IsA<Cancellable>>
) -> Result<(IOStream, Option<GString>), Error>
Expand description

Synchronously connects to an endpoint specified by @address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation. @address must be in the D-Bus address format.

A server is not required to set a GUID, so @out_guid may be set to None even on success.

This is a synchronous failable function. See g_dbus_address_get_stream() for the asynchronous version.

§address

A valid D-Bus address.

§cancellable

A #GCancellable or None.

§Returns

A #GIOStream or None if @error is set.

§out_guid

None or return location to store the GUID extracted from @address, if any.