zenoh
zenoh copied to clipboard
Suggestion: `internal::Value` destructor into components.
Describe the feature
Once https://github.com/eclipse-zenoh/zenoh/pull/1119 lands, It May be useful to be able to destruct a Value into its payload and encoding, taking ownership of both upon destruction.
Currently the only option is to take a reference to the payload and encoding, forcing a .clone() in circumstances where destructing would be preferred.
Because Value becomes internal, it could also make sense to make its fields public.
@Charles-Schleich can you submit a PR?
Resolved by 1178