Struct stan::SubscriptionConfig[][src]

pub struct SubscriptionConfig<'a> {
    pub queue_group: Option<&'a str>,
    pub durable_name: Option<&'a str>,
    pub start: SubscriptionStart,
    pub max_in_flight: i32,
    pub ack_wait_in_secs: i32,
}

Configuration to pass to subscription. Defaults to no queue group, no durable queue and starts from last received message.

Fields

queue_group: Option<&'a str>

Name of the queue group, see: https://docs.nats.io/nats-concepts/queue

durable_name: Option<&'a str>

Set this to keep position after reconnect, see: https://docs.nats.io/developing-with-nats-streaming/durables

start: SubscriptionStart

Position to start the subscription from

max_in_flight: i32ack_wait_in_secs: i32

Trait Implementations

impl<'a> Debug for SubscriptionConfig<'a>[src]

impl<'a> Default for SubscriptionConfig<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SubscriptionConfig<'a>

impl<'a> Send for SubscriptionConfig<'a>

impl<'a> Sync for SubscriptionConfig<'a>

impl<'a> Unpin for SubscriptionConfig<'a>

impl<'a> UnwindSafe for SubscriptionConfig<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,