gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
293 stars 115 forks source link

Add some quality-of-life gdbus helpers #1558

Closed swsnr closed 3 weeks ago

swsnr commented 1 month ago

Add a helper to return a standard result type from an invocation, automatically wrapping the return value into a tuple if it isn't a tuple yet.

Add another helper to return an async result from a future.

Update the gdbus example to demo the new async helper, and show how to simplify parameter handling with auto-derived variant structs.

swsnr commented 4 weeks ago

Accidentally committed some left over change, I'll fix this tomorrow.

swsnr commented 4 weeks ago

@sdroege Pipeline passes now, but the question about the name still stands... should I rename the method?

swsnr commented 3 weeks ago

Thank you for reviewing and merging 🙏