Expand description
Core traits and types for the Hexeract messaging framework.
This crate is a placeholder. The full implementation ships in v0.1.0.
Re-exports§
pub use command::Command;pub use context::HandlerContext;pub use envelope::MessageEnvelope;pub use error::HexeractError;pub use handler::CommandHandler;pub use handler::QueryHandler;pub use ids::CorrelationId;pub use ids::MessageId;pub use middleware::BoxOutput;pub use middleware::Middleware;pub use middleware::Next;pub use middleware::Terminal;pub use query::Query;
Modules§
- command
- Marker trait for messages expressing the intent to mutate state.
- context
- Contextual information propagated into every handler invocation.
- envelope
- Type-erased metadata carried alongside every dispatch.
- error
- Unified framework error type.
- handler
- Async handler traits dispatched by the mediator.
- ids
- Unique identifier newtypes for messages and correlations.
- middleware
- Middleware pipeline primitives.
- query
- Marker trait for read-only messages asking for information.