Module prelude

Source

Re-exports§

pub use serde;
pub use serde_json;
pub use tokio;
pub use tracing;

Modules§

command
Example - simple command handler
event
uow

Macros§

init_event_handler
This macro is used to create event handler for each event.
register_uow_services

Structs§

CommandHandler
CommandResponseWithEventFutures
Context
Local context it lasts only until logical unit of operation is done
ContextManager
Request Context Manager it lives as long as the request lives
EventMetadata
HandlerMapper
A hash map implemented with quadratic probing and SIMD lookup.
MessageBus
OutBox
SnowFlake

Enums§

BaseError
EventHandlers

Traits§

ApplicationError
ApplicationResponse
AsyncFunc
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.
TAggregate
TCommand
TCommandService
Interface for messagebus to work on
TConnection
TEvent
TEventBus
TGetHandler
TMessageBus
TSetCurrentEvents
TUnitOfWork
Template for Unit of Work Concrete implementation must implement _commit method If you want to add hooks on events, you can implement process_internal_events and process_external_events
TUnitOfWorkCommandHandler

Type Aliases§

AtomicContextManager
Future
FutureResult
Handlers
TEventHandler
Event handlers TEventBus work on

Attribute Macros§

async_trait

Derive Macros§

Deserialize
Serialize