pub struct ConsumerOptions {
pub queue_name: String,
pub consumer_tag: Option<String>,
pub concurrency: usize,
pub prefetch_count: Option<u16>,
pub auto_declare_queue: bool,
pub queue_options: CustomQueueDeclareOptions,
pub retry_policy: Option<RetryPolicy>,
pub dead_letter_exchange: Option<String>,
pub auto_ack: bool,
pub exclusive: bool,
pub arguments: FieldTable,
}Expand description
Consumer options
Fields§
§queue_name: StringQueue name to consume from
consumer_tag: Option<String>Consumer tag (optional)
concurrency: usizeNumber of concurrent message processors
prefetch_count: Option<u16>Prefetch count (QoS)
auto_declare_queue: boolAuto-declare queue before consuming
queue_options: CustomQueueDeclareOptionsQueue declaration options
retry_policy: Option<RetryPolicy>Retry policy for failed messages
dead_letter_exchange: Option<String>Dead letter exchange for failed messages
auto_ack: boolAuto-ack messages (not recommended for production)
exclusive: boolConsumer exclusive mode
arguments: FieldTableConsumer arguments
Implementations§
Source§impl ConsumerOptions
impl ConsumerOptions
Sourcepub fn builder<S: Into<String>>(queue_name: S) -> ConsumerOptionsBuilder
pub fn builder<S: Into<String>>(queue_name: S) -> ConsumerOptionsBuilder
Create a new consumer options builder
Trait Implementations§
Source§impl Clone for ConsumerOptions
impl Clone for ConsumerOptions
Source§fn clone(&self) -> ConsumerOptions
fn clone(&self) -> ConsumerOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsumerOptions
impl Debug for ConsumerOptions
Auto Trait Implementations§
impl Freeze for ConsumerOptions
impl RefUnwindSafe for ConsumerOptions
impl Send for ConsumerOptions
impl Sync for ConsumerOptions
impl Unpin for ConsumerOptions
impl UnwindSafe for ConsumerOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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