[][src]Struct pulsar::producer::TopicProducer

pub struct TopicProducer { /* fields omitted */ }

Methods

impl TopicProducer[src]

pub fn new<S1, S2, E: PulsarExecutor>(
    addr: S1,
    topic: S2,
    name: Option<String>,
    auth: Option<Authentication>,
    proxy_to_broker_url: Option<String>,
    options: ProducerOptions,
    executor: E
) -> impl Future<Item = TopicProducer, Error = Error> where
    S1: Into<String>,
    S2: Into<String>, 
[src]

pub fn from_connection<S: Into<String>>(
    connection: Arc<Connection>,
    topic: S,
    name: Option<String>,
    options: ProducerOptions
) -> impl Future<Item = TopicProducer, Error = Error>
[src]

pub fn is_valid(&self) -> bool[src]

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

pub fn check_connection(&self) -> impl Future<Item = (), Error = Error>[src]

pub fn send_raw(
    &self,
    message: Message
) -> impl Future<Item = CommandSendReceipt, Error = Error>
[src]

pub fn send<T: SerializeMessage + ?Sized>(
    &self,
    message: &T,
    num_messages: Option<i32>
) -> impl Future<Item = CommandSendReceipt, Error = Error>
[src]

pub fn error(&self) -> Option<Error>[src]

Trait Implementations

impl Drop for TopicProducer[src]

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