pub trait TopicMessageQueueChangeListener: Send + Sync {
// Required method
fn on_changed(&self, topic: &str, message_queues: HashSet<MessageQueue>);
}Expand description
A trait for listening to changes in the message queues of a specific topic.
Required Methods§
Sourcefn on_changed(&self, topic: &str, message_queues: HashSet<MessageQueue>)
fn on_changed(&self, topic: &str, message_queues: HashSet<MessageQueue>)
Called when the message queues for a topic have changed.
§Arguments
topic- The name of the topic whose message queues have changed.message_queues- A set ofMessageQueueinstances representing the new state of the message queues.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".