zenoh
zenoh copied to clipboard
Impl Deref<&Value> for Sample
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().
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.