Skip to main content

Module event

Module event 

Source
Expand description

Synchronous event dispatcher.

Structs§

EventDispatcher
Dispatches events to subscribers sorted by priority (high first).
RecordingSubscriber
Records event names in dispatch order for a single event name.
RegisterEventSubscribersPass
Registers DISPATCHER_SERVICE from services tagged SUBSCRIBER_TAG.
SubscriberService
Newtype so subscriber trait objects can be stored in the container.

Enums§

EventError
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.
EventSubscriber
Handles events of one name. Higher Self::priority runs first.

Functions§

assert_dispatched
Asserts recorded event names equal expected in order.