pub fn dbus_gvariant_to_gvalue(value: &Variant) -> Value
Expand description

Converts a glib::Variant to a glib::Value. If value is floating, it is consumed.

The rules specified in the dbus_gvalue_to_gvariant() function are used - this function is essentially its reverse form. So, a glib::Variant containing any basic or string array type will be converted to a glib::Value containing a basic value or string array. Any other glib::Variant (handle, variant, tuple, dict entry) will be converted to a glib::Value containing that glib::Variant.

The conversion never fails - a valid glib::Value is always returned in out_gvalue.

value

A glib::Variant.

Returns

out_gvalue

Return location pointing to a zero-filled (uninitialized) glib::Value.