pub struct ProducerConfig {
pub default_queue: Option<QueueName>,
pub confirm_timeout: Duration,
pub retry_count: u32,
pub retry_interval: Duration,
}Expand description
生产者配置
Fields§
§default_queue: Option<QueueName>默认队列
confirm_timeout: Duration消息确认超时
retry_count: u32重试次数
retry_interval: Duration重试间隔
Trait Implementations§
Source§impl Clone for ProducerConfig
impl Clone for ProducerConfig
Source§fn clone(&self) -> ProducerConfig
fn clone(&self) -> ProducerConfig
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 ProducerConfig
impl Debug for ProducerConfig
Auto Trait Implementations§
impl Freeze for ProducerConfig
impl RefUnwindSafe for ProducerConfig
impl Send for ProducerConfig
impl Sync for ProducerConfig
impl Unpin for ProducerConfig
impl UnsafeUnpin for ProducerConfig
impl UnwindSafe for ProducerConfig
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