Structs§
- Publisher
- Publishers are responsible for sending messages to all of their subscribers. They keep a list of subscribers and offer methods to add and remove subscribers from the list. It does not keep track of the messages it sends or offer any other behavior.
Traits§
- Subscriber
- Subscribers are notified when a Publisher sends a message. They receive a reference to the message and can choose to do whatever they want with it.