Module basic

Module basic 

Source
Available on crate feature async only.

Structs§

BasicAsyncBuilder
The BasicAsyncBuilder helps you to create a BasicAsyncMediator.
BasicAsyncMediator
Basic async mediator for asynchronous environments with events of type Ev.

Traits§

AsyncMediatorInternal
Publish an event Ev asynchronously from within a handler.
AsyncMediatorInternalHandle
Send a request Req asynchronously for processing to the mediator. This will call the handler.
AsyncMediatorInternalNext
Process the next event Ev from the channel asynchronously. This will call all listeners with a clone of that event.
AsyncRequestHandler
Handles the request Req asynchronously. Implemented by the user.
BuilderFlow
A BuilderFlow is generic over M which is the mediator that will be built by BuilderFlow::build().
BuilderInternal
Trait for creating a builder that implements BuilderFlow for a mediator M.
Listener
A Listener is a user-defined closure that is generic over its received event Ev. The closure handles the event and may act upon an event.