Function gio::functions::dbus_address_get_stream_sync [−][src]
pub fn dbus_address_get_stream_sync<P: IsA<Cancellable>>(
address: &str,
cancellable: Option<&P>
) -> 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
dbus_address_get_stream() for the asynchronous version.
address
A valid D-Bus address.
cancellable
A Cancellable or None.
Returns
A IOStream or None if error is set.
out_guid
None or return location to store the GUID extracted from address, if any.