pub struct RabbitConsumer { /* private fields */ }Expand description
A struct representing a RabbitMQ consumer. It manages connection, channel, and message consumption from a specified queue.
Implementations§
Source§impl RabbitConsumer
impl RabbitConsumer
Sourcepub async fn load_messages<T, C>(
&self,
channel_capacity: usize,
consumer_tag: Option<C>,
) -> Result<Receiver<T>>
pub async fn load_messages<T, C>( &self, channel_capacity: usize, consumer_tag: Option<C>, ) -> Result<Receiver<T>>
Sourcepub async fn load_ackable_messages<T, C>(
&self,
channel_capacity: usize,
consumer_tag: Option<C>,
) -> Result<Receiver<AckableMessage<T>>>
pub async fn load_ackable_messages<T, C>( &self, channel_capacity: usize, consumer_tag: Option<C>, ) -> Result<Receiver<AckableMessage<T>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RabbitConsumer
impl RefUnwindSafe for RabbitConsumer
impl Send for RabbitConsumer
impl Sync for RabbitConsumer
impl Unpin for RabbitConsumer
impl UnwindSafe for RabbitConsumer
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