Skip to content

Draft: Allow arguments marked with #[zbus(...)] in dbus_interface property getters and setters

Arnold Loubriat requested to merge args_in_props into main

Implements #218

Remaining work

  • I don't know how to best handle the property getter/setter member name check. has_inputs could be returned by get_args_from_msg since it iterates through the arguments and has enough context, but then we might want to find a new name for this function that already do more than its name imply.
  • Extending property getters/setters require to modify their attached property changed signals, and therefore the signature of all others. To ease the manual creation of signals, we could define a type alias like type FullSignalContext = (&ObjectServer, &Connection, &MessageHeader<'_>, &SignalContext<'_>).

Feedback and guidance very much appreciated.

Merge request reports