eventail/lib.rs
1/*!
2Eventail for Rust + Tokio
3
4User generally starts by creating an [`Endpoint`] and a channel receiver (the Client Receiver).
5
6The Endpoint manages the connection and event publishing, including publisher confirms and retries.
7
8To use the EDA API, the client code uses a [`EndpointHandle`]. Any number of handles can be created with the [`Endpoint::new_handle()`] method.
9
10The Client Receiver receives the subscribed messages and local events.
11
12The User code can choose to consume events ([`endpoint::ClientMessage`]) directly from the Client Receiver,
13but then it must acknowledge (ACK or NACK) the processed messages explicitly
14([`EndpointHandle::ack_delivery`], [`EndpointHandle::nack_delivery`] or [`EndpointHandle::reject_delivery`]) and inform the endpoint
15when it is configured and ready to consume business messages ([`EndpointHandle::configured`]).
16
17The User can also choose to implement the [`service::Service`] trait and let [`service::run_service`] handle the rest.
18*/
19
20pub mod delivery;
21pub mod endpoint;
22pub mod service;
23
24pub use delivery::Delivery;
25pub use endpoint::{Endpoint, EndpointHandle};