-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new generic event trait #179
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #179 +/- ##
==========================================
+ Coverage 84.14% 85.32% +1.17%
==========================================
Files 39 39
Lines 3097 3386 +289
==========================================
+ Hits 2606 2889 +283
- Misses 491 497 +6 ☔ View full report in Codecov by Sentry. |
I just implemented these manually. |
6ce4132
to
86c59f0
Compare
For those reviewing: I'm particularly interested in:
|
a91966a
to
9a33529
Compare
…o-impl for BusProperties
Cargo format Clippy
1. BusProperties. This contains static information about the DBus properties of a particular event type. This is implemented for indivudal event types only and is NOT object safe; it is similar to GenericEvent, but without path() and sender() functions. - DBUS_MEMBER - DBUS_INTERFACE - MATCH_RULE_STRING - REGISTRY_EVENT_STRING - type Body - build() function 2. EventTypeProperties. This is an object-safe trait that specifies similar data as BusProperties, but as runtime functions instead of constants. This will be implemented on individual event types, and wrapper types like `Event`. - member() -> &'static str - interface() -> &'static str - match_rule() -> &'static str - registry_string() -> &'static str - EventProperties is blanket implemented for any type that implenents BusPropeties. 3. EventProperties. This is an object-safe trait specifying qualities of a particular event, not its type. - name() -> BusName<'_> - path() -> ObjectPath<'_> - object_ref() -> ObjectRef (auto-impl) This fixes #176, addresses, at least in part #148.
Whoopsie
fmt Fix tests
870af7c
to
37612f7
Compare
Forgot that Github's "resolve conflicts" feature merges from |
Depends on #177
Still TODO before ready:
static_assertions
(no new deps, we already depend on this)