Expand description
Publish–subscribe pattern.
This is a generic implementation for [NUT-17(https://github.com/cashubtc/nuts/blob/main/17.md) with a type agnostic Publish-subscribe manager.
The manager has a method for subscribers to subscribe to events with a generic type that must be converted to a vector of indexes.
Events are also generic that should implement the Indexable trait.
Modules§
- index
- WS Index
Structs§
- SubId
- Subscription Id wrapper
Constants§
- DEFAULT_
CHANNEL_ SIZE - Default channel size for subscription buffering
- DEFAULT_
REMOVE_ SIZE - Default size of the remove channel
Traits§
- OnNew
Subscription - On New Subscription trait