[][src]Struct pulsar::consumer::ConsumerBuilder

pub struct ConsumerBuilder<'a, Topic, Subscription, SubscriptionType> { /* fields omitted */ }

Methods

impl<'a> ConsumerBuilder<'a, Unset, Unset, Unset>[src]

pub fn new(pulsar: &'a Pulsar) -> Self[src]

impl<'a, Subscription, SubscriptionType> ConsumerBuilder<'a, Unset, Subscription, SubscriptionType>[src]

pub fn with_topic<S: Into<String>>(
    self,
    topic: S
) -> ConsumerBuilder<'a, Set<String>, Subscription, SubscriptionType>
[src]

pub fn multi_topic(
    self,
    regex: Regex
) -> ConsumerBuilder<'a, Set<Regex>, Subscription, SubscriptionType>
[src]

impl<'a, Topic, SubscriptionType> ConsumerBuilder<'a, Topic, Unset, SubscriptionType>[src]

pub fn with_subscription<S: Into<String>>(
    self,
    subscription: S
) -> ConsumerBuilder<'a, Topic, Set<String>, SubscriptionType>
[src]

impl<'a, Topic, Subscription> ConsumerBuilder<'a, Topic, Subscription, Unset>[src]

pub fn with_subscription_type(
    self,
    subscription_type: SubType
) -> ConsumerBuilder<'a, Topic, Subscription, Set<SubType>>
[src]

impl<'a, Subscription, SubscriptionType> ConsumerBuilder<'a, Set<Regex>, Subscription, SubscriptionType>[src]

pub fn with_namespace<S: Into<String>>(
    self,
    namespace: S
) -> ConsumerBuilder<'a, Set<Regex>, Subscription, SubscriptionType>
[src]

pub fn with_topic_refresh(
    self,
    refresh_interval: Duration
) -> ConsumerBuilder<'a, Set<Regex>, Subscription, SubscriptionType>
[src]

impl<'a, Topic, Subscription, SubscriptionType> ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>[src]

pub fn with_consumer_id(
    self,
    consumer_id: u64
) -> ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>
[src]

pub fn with_consumer_name<S: Into<String>>(
    self,
    consumer_name: S
) -> ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>
[src]

pub fn with_batch_size(
    self,
    batch_size: u32
) -> ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>
[src]

pub fn with_options(
    self,
    options: ConsumerOptions
) -> ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>
[src]

pub fn with_unacked_message_resend_delay(self, delay: Option<Duration>) -> Self[src]

The time after which a message is dropped without being acknowledged or nacked that the message is resent. If None, messages will only be resent when a consumer disconnects with pending unacknowledged messages.

impl<'a> ConsumerBuilder<'a, Set<String>, Set<String>, Set<SubType>>[src]

pub fn build<T: DeserializeMessage>(
    self
) -> impl Future<Item = Consumer<T>, Error = Error>
[src]

impl<'a> ConsumerBuilder<'a, Set<Regex>, Set<String>, Set<SubType>>[src]

Auto Trait Implementations

impl<'a, Topic, Subscription, SubscriptionType> !RefUnwindSafe for ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>

impl<'a, Topic, Subscription, SubscriptionType> Send for ConsumerBuilder<'a, Topic, Subscription, SubscriptionType> where
    Subscription: Send,
    SubscriptionType: Send,
    Topic: Send

impl<'a, Topic, Subscription, SubscriptionType> Sync for ConsumerBuilder<'a, Topic, Subscription, SubscriptionType> where
    Subscription: Sync,
    SubscriptionType: Sync,
    Topic: Sync

impl<'a, Topic, Subscription, SubscriptionType> Unpin for ConsumerBuilder<'a, Topic, Subscription, SubscriptionType> where
    Subscription: Unpin,
    SubscriptionType: Unpin,
    Topic: Unpin

impl<'a, Topic, Subscription, SubscriptionType> !UnwindSafe for ConsumerBuilder<'a, Topic, Subscription, SubscriptionType>

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, 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>,