Struct tokio_nsq::NSQProducerConfig
source · pub struct NSQProducerConfig { /* private fields */ }
Expand description
Configuration object for an NSQ consumer
Implementations§
source§impl NSQProducerConfig
impl NSQProducerConfig
sourcepub fn new<S: Into<String>>(address: S) -> NSQProducerConfig
pub fn new<S: Into<String>>(address: S) -> NSQProducerConfig
Construct a consumer with sane defaults.
NSQ Daemon connection options, such as compression and TLS.
sourcepub fn build(self) -> NSQProducer
pub fn build(self) -> NSQProducer
Construct an NSQ producer with this configuration.
Auto Trait Implementations§
impl !RefUnwindSafe for NSQProducerConfig
impl Send for NSQProducerConfig
impl Sync for NSQProducerConfig
impl Unpin for NSQProducerConfig
impl !UnwindSafe for NSQProducerConfig
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