Module contextaware

Module contextaware 

Source
Available on crate feature async only.

Structs§

CxAwareAsyncBuilder
The CxAwareAsyncBuilder helps you to create a CxAwareAsyncMediator.
CxAwareAsyncMediator
Context aware async mediator for asynchronous environments with events of type Ev.
NoCxAvailable

Traits§

AsyncMediatorInternal
Publish an event Ev asynchronously from within a handler.
AsyncMediatorInternalNext
Process the next event Ev from the channel asynchronously. This will call all listeners with a clone of that event.
CxAwareAsyncMediatorInternalHandle
Send a request Req asynchronously for processing to the mediator. This will call the handler. The handler here is context-dependent.
CxAwareAsyncRequestHandler
Handles the request Req asynchronously. Implemented by the user. Gives access to the dependency Dep.
CxAwareMediatorBuilderInterface
Advanced builder fuctionality: Adding a dependency dep to the builder.
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.
TryBuilderFlow
A TryBuilderFlow is generic over M which is the mediator that will be tried to be built by TryBuilderFlow::build().
TryBuilderInternal
Trait for creating a builder that implements TryBuilderFlow for a mediator M.