[][src]Struct pulsar::consumer::MultiTopicConsumer

pub struct MultiTopicConsumer<T: DeserializeMessage> { /* fields omitted */ }

Methods

impl<T: DeserializeMessage> MultiTopicConsumer<T>[src]

pub fn new<S1, S2>(
    pulsar: Pulsar,
    namespace: S1,
    topic_regex: Regex,
    subscription: S2,
    sub_type: SubType,
    topic_refresh: Duration,
    unacked_message_resend_delay: Option<Duration>,
    options: ConsumerOptions
) -> Self where
    S1: Into<String>,
    S2: Into<String>, 
[src]

pub fn start_state_stream(
    &mut self
) -> impl Stream<Item = ConsumerState, Error = ()>
[src]

Trait Implementations

impl<T: DeserializeMessage> Debug for MultiTopicConsumer<T>[src]

impl<T: 'static + DeserializeMessage> Stream for MultiTopicConsumer<T>[src]

type Item = Message<T::Output>

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

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> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<S> StreamExt for S where
    S: Stream
[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>,