pub struct PulsarPublisher { /* private fields */ }Expand description
Publishes messages to Pulsar topics, one producer per topic, created lazily and shared
through the broker core (so shutdown can close them).
A partition-key header becomes the message’s partition key, which keyed routing and
KeyShared subscriptions order by. Awaits the broker’s send receipt, so Ok means the
broker stored the message. Buildable before connect and usable until shutdown;
afterwards every publish reports PulsarError::NotConnected.
Trait Implementations§
Source§impl Clone for PulsarPublisher
impl Clone for PulsarPublisher
Source§fn clone(&self) -> PulsarPublisher
fn clone(&self) -> PulsarPublisher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PulsarPublisher
impl Debug for PulsarPublisher
Auto Trait Implementations§
impl !RefUnwindSafe for PulsarPublisher
impl !UnwindSafe for PulsarPublisher
impl Freeze for PulsarPublisher
impl Send for PulsarPublisher
impl Sync for PulsarPublisher
impl Unpin for PulsarPublisher
impl UnsafeUnpin for PulsarPublisher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more