Comments (8)
You probably want to send this argument as a dict? Something like this:
let d = dbus::arg::Dict::new(total_published_count.iter());
let m3 = m3.append1(d);
from dbus-rs.
Oh Thanks. Can I add a dict signal example to examples
? Also Is there a way to create a tree using XMLs and then register it ? Code might look cleaner that way.
from dbus-rs.
Oh Thanks. Can I add a dict signal example to examples?
Sure you can! Contributions are welcome.
Also Is there a way to create a tree using XMLs and then register it ? Code might look cleaner that way.
Do you mean introspection XML?
Either way, I believe the answer is "no". I have had thoughts about it (see issue #53 e g) but it's not there yet.
from dbus-rs.
Also Is there a way to create a tree using XMLs and then register it ? Code might look cleaner that way.
Btw, if you have a good example of how you wish your code to look like? I could use some inspiration.
from dbus-rs.
Oh, and I just implemented some traits on HashMap so in the next release of dbus-rs you should be able to do just
let m3 = m3.append1(map);
from dbus-rs.
@diwic Oh this is cool. Thanks.
how you wish your code to look like? I could use some inspiration
I remember seeing something like this in go dbus. I'll try to find an example
from dbus-rs.
go dbus is doing this
https://github.com/godbus/dbus/blob/master/_examples/server.go#L11-L16
from dbus-rs.
Ok, thanks for the example. Always good to know how other languages do it.
Btw, there is the dbus-macros crate, which is written by someone else, but anyhow an inspiration. Maybe it's helpful to you?
from dbus-rs.
Related Issues (20)
- alpine build fail HOT 1
- Monitor example doesn't connect when dbus-monitor does HOT 4
- Support : How to read Array of HashMap HOT 4
- How does dbus-crossroads start X11? HOT 4
- Doesn't compile on ubuntu-latest image HOT 5
- dbus-crossroads: cr.insert() during sync method call HOT 1
- GetManagedObjects doesn't respond with async properties HOT 6
- Use standard library `OwnedFd` HOT 10
- Crossroads::get_children() returns not children but descendants HOT 1
- Multi-interface fdo Properties GetAll behaves erratically with async properties HOT 2
- fdo ObjectManager GetManagedObjects method panics with multiple objects and async properties HOT 1
- "vendored" feature fails to compile HOT 7
- Possible deadlock in dbus-tokio HOT 4
- Crossroad example not working HOT 1
- `vendored` feature's build script writes outside of `$OUT_DIR` HOT 5
- async monitor? HOT 4
- monitor system bus without root privileges HOT 4
- [Help] When variant is a struct? HOT 10
- dbus-codegen: When crossroads is enabled, no client-side code is generated HOT 3
- dbus-codegen: Add attribute to specify rust type for method arguments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbus-rs.