async_nats::jetstream::consumer

Trait FromConsumer

Source
pub trait FromConsumer {
    // Required method
    fn try_from_consumer_config(config: Config) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

Trait used to convert generic Stream Config into either Pull or Push config. It validates if given config is a valid target one.

Required Methods§

Source

fn try_from_consumer_config(config: Config) -> Result<Self, Error>
where Self: Sized,

Implementors§

Source§

impl FromConsumer for async_nats::jetstream::consumer::pull::Config

Source§

impl FromConsumer for async_nats::jetstream::consumer::pull::OrderedConfig

Source§

impl FromConsumer for async_nats::jetstream::consumer::push::Config

Source§

impl FromConsumer for async_nats::jetstream::consumer::push::OrderedConfig

Source§

impl FromConsumer for async_nats::jetstream::consumer::Config