pub trait Topic:
Debug
+ Clone
+ Hash
+ Eq {
type Item;
// Required method
fn topic(item: &Self::Item) -> Self;
// Provided method
fn fallback(self) -> Self { ... }
}Expand description
The topic that will be used to route items to a specific subscriber.
Required Associated Types§
Required Methods§
Provided Methods§
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.