From f3681ff2bfcf09d0e5fd4d72a73ce0d5a2fa05e9 Mon Sep 17 00:00:00 2001 From: Jonas Berlin Date: Sun, 26 Feb 2023 13:35:57 +0200 Subject: [PATCH] docs: Note about `MatchRule` in `Connection::add_match()` --- dbus/src/ffidisp/connection.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/dbus/src/ffidisp/connection.rs b/dbus/src/ffidisp/connection.rs index 25454327..dbedd89e 100644 --- a/dbus/src/ffidisp/connection.rs +++ b/dbus/src/ffidisp/connection.rs @@ -309,6 +309,7 @@ impl Connection { /// Add a match rule to match messages on the message bus. /// /// See the `unity_focused_window` example for how to use this to catch signals. + /// You can use MatchRule to construct the "rule" string. /// (The syntax of the "rule" string is specified in the [D-Bus specification](https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing-match-rules).) pub fn add_match(&self, rule: &str) -> Result<(), Error> { let mut e = Error::empty();