zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

Impl Deref<&Value> for Sample

Open Mallets opened this issue 3 years ago • 1 comments

By implementing Deref<&Value> for Sample becomes possible to have an automatic shortcut to access the actual payload in samples.

I.e., in addition to sample.value.payload.contigous() it will also possible to access the payload by typing sample.payload.contigous().

Mallets avatar Apr 07 '22 13:04 Mallets

https://github.com/eclipse-zenoh/zenoh/pull/258 has been merged into api-changes branch. This issue will be automatically closed once api-changes is merged into master.

Mallets avatar Apr 20 '22 08:04 Mallets