zbus-old
zbus-old copied to clipboard
Add an API similar to `GDBusMessage::from_blob`
In GitLab by @SeaDve on Mar 16, 2023, 15:44
Currently, there is zbus::Message::from_raw_parts. However, it is private.
For the use case, Bustle has DBus messages serialized in a pcap file. There is currently not a convenient way to parse the bytes from each packet from the pcap file into a zbus::Message.
Link
Thanks for reporting this but I guess I wasn't clear on the matrix channel when we discussed this. I don't need to consider this, I think we should provide such an API. I suggested we make zbus::Message::from_raw_parts public as part of MessageBuilder. Would it be possible to provide a MR?
In GitLab by @SeaDve on Mar 16, 2023, 16:07
Ahhh. yeah, sure