Module hash_set

Module hash_set 

Source
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
Expand description

Observable hash set.

This provides a locally and remotely observable hash set. The observable hash set sends a change event each time a change is performed on it. The resulting event stream can either be processed event-wise or used to build a mirrored hash set.

Changes are sent using a remote broadcast channel, thus subscribers cannot block the observed hash set and are shed when their event buffer exceeds a configurable size.

§Basic use

Create a ObservableHashSet and obtain a subscription to it using ObservableHashSet::subscribe. Send this subscription to a remote endpoint via a remote channel and call HashSetSubscription::mirror on the remote endpoint to obtain a live mirror of the observed hash set or process each change event individually using HashSetSubscription::recv.

Structs§

HashSetSubscriptionDeprecated
Observable hash set subscription.
MirroredHashSetDeprecated
A hash set that is mirroring an observable hash set.
MirroredHashSetRefDeprecated
A snapshot view of an observable hash set.
ObservableHashSetDeprecated
A hash set that emits an event for each change.

Enums§

HashSetEventDeprecated
A hash set change event.