Expand description
A lightweight message-routing hub bridging pub/sub semantics with actor-like concurrency.
This crate provides two ways for components to communicate:
- Hub-mediated routing through a central
Postoffice. - Direct peer-to-peer delivery through cached local contacts on a
Letterbox.
The design is intentionally simple. Each actor or client gets a Letterbox, which acts as its inbox/outbox.
A central Postoffice keeps track of registered letterboxes and subscriptions. Messages can be published
by type variant, sent directly by address, or delivered directly to known contacts.
Structs§
- Letterbox
- Local endpoint used by a participant in the messaging system.
- Postoffice
- Central routing hub that manages registration and subscription state.