gio::functions

Function dbus_is_error_name

Source
pub fn dbus_is_error_name(string: &str) -> bool
Available on crate feature v2_70 only.
Expand description

Check whether @string is a valid D-Bus error name.

This function returns the same result as g_dbus_is_interface_name(), because D-Bus error names are defined to have exactly the same syntax as interface names.

§string

The string to check.

§Returns

true if valid, false otherwise.