Skip to main content

JobTopic

Trait JobTopic 

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

Source

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".

Implementors§