pub trait JetStreamable: TypedMessage {
// Required methods
fn stream_name() -> &'static str;
fn config() -> Config;
}
Required Methods§
Sourcefn stream_name() -> &'static str
fn stream_name() -> &'static str
Returns the name of the JetStream associated with this message type.
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.