[][src]Struct pulsar::Pulsar

pub struct Pulsar { /* fields omitted */ }

Methods

impl Pulsar[src]

pub fn new<E: PulsarExecutor>(
    addr: SocketAddr,
    auth: Option<Authentication>,
    executor: E
) -> impl Future<Item = Self, Error = Error>
[src]

pub fn lookup_topic<S: Into<String>>(
    &self,
    topic: S
) -> impl Future<Item = BrokerAddress, Error = Error>
[src]

pub fn lookup_partitioned_topic_number<S: Into<String>>(
    &self,
    topic: S
) -> impl Future<Item = u32, Error = Error>
[src]

get the number of partitions for a partitioned topic

pub fn lookup_partitioned_topic<S: Into<String>>(
    &self,
    topic: S
) -> impl Future<Item = Vec<(String, BrokerAddress)>, Error = Error>
[src]

pub fn get_topics_of_namespace(
    &self,
    namespace: String,
    mode: Mode
) -> impl Future<Item = Vec<String>, Error = Error>
[src]

pub fn consumer(&self) -> ConsumerBuilder<Unset, Unset, Unset>[src]

pub fn create_multi_topic_consumer<T, S1, S2>(
    &self,
    topic_regex: Regex,
    subscription: S1,
    namespace: S2,
    sub_type: SubType,
    topic_refresh: Duration,
    unacked_message_resend_delay: Option<Duration>,
    options: ConsumerOptions
) -> MultiTopicConsumer<T> where
    T: DeserializeMessage,
    S1: Into<String>,
    S2: Into<String>, 
[src]

pub fn create_consumer<T, S1, S2>(
    &self,
    topic: S1,
    subscription: S2,
    sub_type: SubType,
    batch_size: Option<u32>,
    consumer_name: Option<String>,
    consumer_id: Option<u64>,
    unacked_message_redelivery_delay: Option<Duration>,
    options: ConsumerOptions
) -> impl Future<Item = Consumer<T>, Error = Error> where
    T: DeserializeMessage,
    S1: Into<String>,
    S2: Into<String>, 
[src]

pub fn create_partitioned_consumers<T: DeserializeMessage + Sized, S1: Into<String> + Clone, S2: Into<String> + Clone>(
    &self,
    topic: S1,
    subscription: S2,
    sub_type: SubType,
    options: ConsumerOptions
) -> impl Future<Item = Vec<Consumer<T>>, Error = Error>
[src]

pub fn create_producer<S: Into<String>>(
    &self,
    topic: S,
    name: Option<String>,
    options: ProducerOptions
) -> impl Future<Item = TopicProducer, Error = Error>
[src]

pub fn create_partitioned_producers<S: Into<String>>(
    &self,
    topic: S,
    options: ProducerOptions
) -> impl Future<Item = Vec<TopicProducer>, Error = Error>
[src]

pub fn send<S: Into<String>, M: SerializeMessage + ?Sized>(
    &self,
    topic: S,
    message: &M,
    options: ProducerOptions
) -> impl Future<Item = CommandSendReceipt, Error = Error>
[src]

pub fn send_raw<S: Into<String>>(
    &self,
    message: Message,
    topic: S,
    options: ProducerOptions
) -> impl Future<Item = CommandSendReceipt, Error = Error>
[src]

pub fn producer(&self, options: Option<ProducerOptions>) -> Producer[src]

Trait Implementations

impl Clone for Pulsar[src]

Auto Trait Implementations

impl !RefUnwindSafe for Pulsar

impl Send for Pulsar

impl Sync for Pulsar

impl Unpin for Pulsar

impl !UnwindSafe for Pulsar

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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