Skip to content

Commit

Permalink
Merge pull request #426 from xkr47/patch-5
Browse files Browse the repository at this point in the history
docs: Note about `MatchRule` in `Connection::add_match()`
  • Loading branch information
diwic authored Feb 27, 2023
2 parents a6a744a + f3681ff commit 3a7b732
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbus/src/ffidisp/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3a7b732

Please sign in to comment.