pub struct NatsPublisher { /* private fields */ }Expand description
NATS publisher built on top of async_nats::Client. Cheap to clone.
Holds the broker’s shared connection cell, so a publisher created before the broker connects
resolves the client on first use; publishing before Broker::connect
returns NatsError::NotConnected.
Trait Implementations§
Source§impl Clone for NatsPublisher
impl Clone for NatsPublisher
Source§fn clone(&self) -> NatsPublisher
fn clone(&self) -> NatsPublisher
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 NatsPublisher
impl Debug for NatsPublisher
Source§impl Publisher for NatsPublisher
impl Publisher for NatsPublisher
Source§impl RequestReply for NatsPublisher
impl RequestReply for NatsPublisher
Auto Trait Implementations§
impl !RefUnwindSafe for NatsPublisher
impl !UnwindSafe for NatsPublisher
impl Freeze for NatsPublisher
impl Send for NatsPublisher
impl Sync for NatsPublisher
impl Unpin for NatsPublisher
impl UnsafeUnpin for NatsPublisher
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