pub trait JobTopic {
// Required method
fn topic_name() -> &'static str;
}Expand description
The topic a message type is declared under.
crate::background_job! generates this implementation for any message
declared with #[topic("name")]. It is rarely implemented by hand.
Required Methods§
Sourcefn topic_name() -> &'static str
fn topic_name() -> &'static str
Returns the stable topic name used to route and order this message.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".