Expand description
Synchronous event dispatcher.
Structs§
- Event
Dispatcher - Dispatches events to subscribers sorted by priority (high first).
- Recording
Subscriber - Records event names in dispatch order for a single event name.
- Register
Event Subscribers Pass - Registers
DISPATCHER_SERVICEfrom services taggedSUBSCRIBER_TAG. - Subscriber
Service - Newtype so subscriber trait objects can be stored in the container.
Enums§
- Event
Error - Failure while dispatching or handling an event.
Constants§
- DISPATCHER_
SERVICE - Container id of the compiled
EventDispatcher. - SUBSCRIBER_
TAG - Service tag applied to event subscriber definitions.
Traits§
- Event
- Synchronous application or infrastructure event.
- Event
Subscriber - Handles events of one name. Higher
Self::priorityruns first.
Functions§
- assert_
dispatched - Asserts recorded event names equal
expectedin order.