eclipse-score / eclipse-score/communication

Rust-API: Subscription: Explore for try_receive how to link containers to subscription instance

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
rust-api
Dominant language
C++
Stars
62
Forks
97
Avg merge
1d 1h
Merged PRs (30d)
72

Description

Explore if and how it would be possible to link the samples in a container used to exchange Samples with the try_receive function to a subscription instance.

A user could pass a `SampleContainer` to the `try_receive` function in the `Subscription` trait that contains samples of the same type but from a different `Subscription` instance. It makes little sense to do this on purpose and should be dealt with by refusing the sample container or by dropping the Samples.

How can we differenciate `Samples` of the same Type that stem from different `Subscription` instances?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.