Struct rabbitmq_stream_client::Producer
source · pub struct Producer<T>(/* private fields */);
Expand description
API for publising messages to RabbitMQ stream
Implementations§
source§impl Producer<NoDedup>
impl Producer<NoDedup>
pub async fn send_with_confirm( &self, message: Message ) -> Result<ConfirmationStatus, ProducerPublishError>
pub async fn batch_send_with_confirm( &self, messages: Vec<Message> ) -> Result<Vec<ConfirmationStatus>, ProducerPublishError>
pub async fn batch_send<Fut>( &self, messages: Vec<Message>, cb: impl Fn(Result<ConfirmationStatus, ProducerPublishError>) -> Fut + Send + Sync + 'static ) -> Result<(), ProducerPublishError>
pub async fn send<Fut>( &self, message: Message, cb: impl Fn(Result<ConfirmationStatus, ProducerPublishError>) -> Fut + Send + Sync + 'static ) -> Result<(), ProducerPublishError>
source§impl Producer<Dedup>
impl Producer<Dedup>
pub async fn send_with_confirm( &mut self, message: Message ) -> Result<ConfirmationStatus, ProducerPublishError>
pub async fn batch_send_with_confirm( &mut self, messages: Vec<Message> ) -> Result<Vec<ConfirmationStatus>, ProducerPublishError>
pub async fn batch_send<Fut>( &mut self, messages: Vec<Message>, cb: impl Fn(Result<ConfirmationStatus, ProducerPublishError>) -> Fut + Send + Sync + 'static ) -> Result<(), ProducerPublishError>
pub async fn send<Fut>( &mut self, message: Message, cb: impl Fn(Result<ConfirmationStatus, ProducerPublishError>) -> Fut + Send + Sync + 'static ) -> Result<(), ProducerPublishError>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Producer<T>
impl<T> Send for Producer<T>where
T: Send,
impl<T> Sync for Producer<T>where
T: Sync,
impl<T> Unpin for Producer<T>where
T: Unpin,
impl<T> !UnwindSafe for Producer<T>
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