[−][src]Struct pulsar::producer::TopicProducer
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]
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>,
pub fn from_connection<S: Into<String>>(
connection: Arc<Connection>,
topic: S,
name: Option<String>,
options: ProducerOptions
) -> impl Future<Item = TopicProducer, Error = Error>
[src]
connection: Arc<Connection>,
topic: S,
name: Option<String>,
options: ProducerOptions
) -> impl Future<Item = TopicProducer, Error = Error>
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]
&self,
message: Message
) -> impl Future<Item = CommandSendReceipt, Error = Error>
pub fn send<T: SerializeMessage + ?Sized>(
&self,
message: &T,
num_messages: Option<i32>
) -> impl Future<Item = CommandSendReceipt, Error = Error>
[src]
&self,
message: &T,
num_messages: Option<i32>
) -> impl Future<Item = CommandSendReceipt, Error = Error>
pub fn error(&self) -> Option<Error>
[src]
Trait Implementations
impl Drop for TopicProducer
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TopicProducer
impl Send for TopicProducer
impl Sync for TopicProducer
impl Unpin for TopicProducer
impl !UnwindSafe for TopicProducer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,