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
endpoint
address. - get_
message_ bus - Gets the thread-local message bus.
- is_
subscribed - publish
- Publishes the
message
to thetopic
. - publish_
data - Publish [
Data
] to a topic. - register
- Registers the
handler
for theendpoint
address. - register_
response_ handler - response
- Sends the response to the handler registered for the
correlation_id
(if found). - send
- Sends the
message
to theendpoint
. - send_
any - Sends the
message
to theendpoint
. - send_
response - Sends the
DataResponse
to the registered correlation ID handler. - set_
message_ bus - Sets the thread-local message bus.
- subscribe
- Subscribes the
handler
to thepattern
with an optionalpriority
. - subscribe_
str - subscribe_
topic - subscriptions_
count - unsubscribe
- Unsubscribes the
handler
from thepattern
. - unsubscribe_
str - unsubscribe_
topic