pub trait TopicBus: Bus {
type Exchange: TopicExchange;
const TOPIC_PATTERN: &'static str;
}Expand description
A bus that is associated with a TopicExchange, and defines a pattern of topics onto which messages can be publised and consumed
Required Associated Constants§
Sourceconst TOPIC_PATTERN: &'static str
const TOPIC_PATTERN: &'static str
The pattern of the topic that this bus publishes to or consumes from
May contain * to indicate single-word wildcards, but not #
Required Associated Types§
Sourcetype Exchange: TopicExchange
type Exchange: TopicExchange
The Topic Exchange this bus is associated with
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.