Skip to main content

hexeract_core/
lib.rs

1//! Core traits and types for the Hexeract messaging framework.
2//!
3//! This crate is a placeholder. The full implementation ships in v0.1.0.
4
5/// Marker trait for messages expressing the intent to mutate state.
6pub mod command;
7/// Contextual information propagated into every handler invocation.
8pub mod context;
9/// Type-erased metadata carried alongside every dispatch.
10pub mod envelope;
11/// Unified framework error type.
12pub mod error;
13/// Async handler traits dispatched by the mediator.
14pub mod handler;
15/// Unique identifier newtypes for messages and correlations.
16pub mod ids;
17/// Middleware pipeline primitives.
18pub mod middleware;
19/// Marker trait for read-only messages asking for information.
20pub mod query;
21
22pub use command::Command;
23pub use context::HandlerContext;
24pub use envelope::MessageEnvelope;
25pub use error::HexeractError;
26pub use handler::{CommandHandler, QueryHandler};
27pub use ids::{CorrelationId, MessageId};
28pub use middleware::{BoxOutput, Middleware, Next, Terminal};
29pub use query::Query;