Available on crate feature
async only.Structs§
- CxAware
Async Builder - The
CxAwareAsyncBuilderhelps you to create aCxAwareAsyncMediator. - CxAware
Async Mediator - Context aware async mediator for asynchronous environments with events of type
Ev. - NoCx
Available
Traits§
- Async
Mediator Internal - Publish an event
Evasynchronously from within a handler. - Async
Mediator Internal Next - Process the next event
Evfrom the channel asynchronously. This will call all listeners with a clone of that event. - CxAware
Async Mediator Internal Handle - Send a request
Reqasynchronously for processing to the mediator. This will call the handler. The handler here is context-dependent. - CxAware
Async Request Handler - Handles the request
Reqasynchronously. Implemented by the user. Gives access to the dependencyDep. - CxAware
Mediator Builder Interface - Advanced builder fuctionality:
Adding a dependency
depto the builder. - Listener
- A
Listeneris a user-defined closure that is generic over its received eventEv. The closure handles the event and may act upon an event. - TryBuilder
Flow - A
TryBuilderFlowis generic overMwhich is the mediator that will be tried to be built byTryBuilderFlow::build(). - TryBuilder
Internal - Trait for creating a builder
that implements
TryBuilderFlowfor a mediatorM.