dbus2 / zbus

Rust D-Bus crate.
Other
316 stars 70 forks source link

`fdo` proxies should NOT return `fdo::Error` #843

Closed zeenix closed 1 week ago

zeenix commented 3 weeks ago

Proxies should return the generic zbus::Error anyway but this becomes important if we want to make use of the new ability of interface to generate the proxy for us (see #842). I first decided to have interface return the same error type in the proxy methods as it was returning itself and I implemented it already but then I realized this means the error types would be different for fallible and infallible methods in the same proxy.

Note that with the current interface implementation (that hardcodes zbus::Result), this will be implicitly fixed by #842.

zeenix commented 1 week ago

I thought more about this while working on #875 and I don't think that this would be the right direction.