pub struct ProducerConfig {
pub nsqd_addresses: Vec<String>,
pub nsqlookupd_addresses: Vec<String>,
pub connection_timeout: Duration,
pub auth_secret: Option<String>,
pub identify_config: Option<IdentifyConfig>,
pub backoff_config: BackoffConfig,
}Expand description
生产者配置
Fields§
§nsqd_addresses: Vec<String>NSQ服务器地址
nsqlookupd_addresses: Vec<String>NSQ查询服务地址
connection_timeout: Duration连接超时时间
auth_secret: Option<String>认证密钥
identify_config: Option<IdentifyConfig>身份配置
backoff_config: BackoffConfig重连策略
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 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