Comments (5)
Hmm. Looking at the dbus code that fails this assertion, there is a comment that says:
2871 /* this would fail if the contained_signature is a dict entry, since
2872 * dict entries are invalid signatures standalone (they must be in
2873 * an array)
2874 */
...and looking at the type of your parameter, it seems like you have a DictEntry
which is not inside an array.
Apparently this is a restriction of D-Bus itself, which I was unaware of it until today. I wonder if there's something one can do to prevent it on the Rust side...
from dbus-rs.
Looking at it now, it's actually in the spec too. Maybe it makes sense to ditch DictEntry
altogether and replace it with a Dict
which would be the entire array of dict entries. Unfortunately it seems like I can't represent that as a map, because the spec allows floating point keys (argh).
from dbus-rs.
Just not support floating-point keys?
from dbus-rs.
Hi,
I just fixed a bug which is related to having an Array directly inside a Variant, which you have. Could you see if this commit fixes your problem as well?
from dbus-rs.
Works now! Much thanks! Closing.
from dbus-rs.
Related Issues (20)
- 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
- Annotations on interfaces not shown in introspection
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.