pub struct ConsumerConfig {
pub queue: QueueName,
pub consumer_tag: Option<String>,
pub auto_ack: bool,
pub prefetch_count: u16,
pub exclusive: bool,
}Expand description
消费者配置
Fields§
§queue: QueueName队列名称
consumer_tag: Option<String>消费者标签
auto_ack: bool是否自动确认
prefetch_count: u16预取数量
exclusive: bool是否独占
Implementations§
Trait Implementations§
Source§impl Clone for ConsumerConfig
impl Clone for ConsumerConfig
Source§fn clone(&self) -> ConsumerConfig
fn clone(&self) -> ConsumerConfig
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 moreAuto Trait Implementations§
impl Freeze for ConsumerConfig
impl RefUnwindSafe for ConsumerConfig
impl Send for ConsumerConfig
impl Sync for ConsumerConfig
impl Unpin for ConsumerConfig
impl UnsafeUnpin for ConsumerConfig
impl UnwindSafe for ConsumerConfig
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