plane_core::nats

Trait JetStreamable

Source
pub trait JetStreamable: TypedMessage {
    // Required methods
    fn stream_name() -> &'static str;
    fn config() -> Config;
}

Required Methods§

Source

fn stream_name() -> &'static str

Returns the name of the JetStream associated with this message type.

Source

fn config() -> Config

Returns the JetStream configuration 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.

Implementors§