Expand description
A common in-memory MessageBus supporting multiple messaging patterns:
- Point-to-Point
- Pub/Sub
- Request/Response
Re-exports§
pub use core::MessageBus;pub use crate::msgbus::core::MStr;pub use crate::msgbus::core::Pattern;pub use crate::msgbus::core::Topic;pub use crate::msgbus::message::BusMessage;
Modules§
- core
- database
- handler
- Message handler functionality for the message bus system.
- listener
- matching
- message
- stubs
- switchboard
Functions§
- deregister
- Deregisters the handler for the
endpointaddress. - get_
message_ bus - Gets the thread-local message bus.
- is_
subscribed - publish
- Publishes the
messageto thetopic. - publish_
data - Publish [
Data] to a topic. - register
- Registers the
handlerfor theendpointaddress. - register_
response_ handler - response
- Sends the response to the handler registered for the
correlation_id(if found). - send
- Sends the
messageto theendpoint. - send_
any - Sends the
messageto theendpoint. - send_
response - Sends the
DataResponseto the registered correlation ID handler. - set_
message_ bus - Sets the thread-local message bus.
- subscribe
- Subscribes the
handlerto thepatternwith an optionalpriority. - subscribe_
str - subscribe_
topic - subscriptions_
count - unsubscribe
- Unsubscribes the
handlerfrom thepattern. - unsubscribe_
str - unsubscribe_
topic