TopicBus

Trait TopicBus 

Source
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§

Source

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§

Source

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.

Implementors§