We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample
The Rust API provides two variants of mutable access to Sample in reply: result_mut and into_result:
result_mut
into_result
pub struct Reply { pub(crate) result: Result<Sample, ReplyError>, ... } impl Reply { pub fn result_mut(&mut self) -> Result<&mut Sample, &mut ReplyError> {...} pub fn into_result(self) -> Result<Sample, ReplyError> {...} }
In zenoh-c API the only way to take ownership on Sample is through &mut Sample, but it's impossible unless we can replace sample to valid empty one.
&mut Sample
E.g. this update eclipse-zenoh/zenoh-c#718 is actually blocked because we can't safely provide take operation from mutable sample reference.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the release item
The Rust API provides two variants of mutable access to
Sample
in reply:result_mut
andinto_result
:In zenoh-c API the only way to take ownership on
Sample
is through&mut Sample
, but it's impossible unless we can replace sample to valid empty one.E.g. this update eclipse-zenoh/zenoh-c#718 is actually blocked because we can't safely provide take operation from mutable sample reference.
The text was updated successfully, but these errors were encountered: