pub fn module_name(interface: &str) -> StringExpand description
The name of the module generated for an interface, derived from its last segment.
ยงExamples
use tokio_dbus_codegen::module_name;
assert_eq!(module_name("org.freedesktop.Notifications"), "notifications");
assert_eq!(module_name("org.kde.StatusNotifierItem"), "status_notifier_item");
assert_eq!(module_name("com.canonical.dbusmenu"), "dbusmenu");