Struct tokio_nsq::NSQConsumerLookupConfig
source · pub struct NSQConsumerLookupConfig { /* private fields */ }
Expand description
Configuration object for NSQLookup nodes
Implementations§
source§impl NSQConsumerLookupConfig
impl NSQConsumerLookupConfig
sourcepub fn set_poll_interval(self, poll_interval: Duration) -> Self
pub fn set_poll_interval(self, poll_interval: Duration) -> Self
How often an NSQD Lookup Daemon instance should be queried. Defaults to every 60 seconds.
sourcepub fn set_addresses(self, addresses: HashSet<String>) -> Self
pub fn set_addresses(self, addresses: HashSet<String>) -> Self
The set of HTTP addresses for NSQ Lookup Daemon connections. Defaults to no connections.
Trait Implementations§
source§impl Clone for NSQConsumerLookupConfig
impl Clone for NSQConsumerLookupConfig
source§fn clone(&self) -> NSQConsumerLookupConfig
fn clone(&self) -> NSQConsumerLookupConfig
Returns a copy 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 RefUnwindSafe for NSQConsumerLookupConfig
impl Send for NSQConsumerLookupConfig
impl Sync for NSQConsumerLookupConfig
impl Unpin for NSQConsumerLookupConfig
impl UnwindSafe for NSQConsumerLookupConfig
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