[][src]Struct pulsar::consumer::Consumer

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

Methods

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

pub fn new<E: PulsarExecutor>(
    addr: String,
    topic: String,
    subscription: String,
    sub_type: SubType,
    consumer_id: Option<u64>,
    consumer_name: Option<String>,
    auth_data: Option<Authentication>,
    proxy_to_broker_url: Option<String>,
    executor: E,
    batch_size: Option<u32>,
    unacked_message_redelivery_delay: Option<Duration>,
    options: ConsumerOptions
) -> impl Future<Item = Consumer<T>, Error = Error>
[src]

pub fn from_connection(
    conn: Arc<Connection>,
    topic: String,
    subscription: String,
    sub_type: SubType,
    consumer_id: Option<u64>,
    consumer_name: Option<String>,
    batch_size: Option<u32>,
    unacked_message_redelivery_delay: Option<Duration>,
    options: ConsumerOptions
) -> impl Future<Item = Consumer<T>, Error = Error>
[src]

pub fn topic(&self) -> &str[src]

pub fn options(&self) -> &ConsumerOptions[src]

Trait Implementations

impl<T: DeserializeMessage> Drop for Consumer<T>[src]

impl<T: DeserializeMessage> Stream for Consumer<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

impl<T> !RefUnwindSafe for Consumer<T>

impl<T> Send for Consumer<T>

impl<T> Sync for Consumer<T>

impl<T> Unpin for Consumer<T>

impl<T> !UnwindSafe for Consumer<T>

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