Struct tokio_nsq::NSQConsumerLookupConfig[][src]

pub struct NSQConsumerLookupConfig { /* fields omitted */ }

Configuration object for NSQLookup nodes

Implementations

impl NSQConsumerLookupConfig[src]

pub fn new() -> Self[src]

Construct a Lookup Daemon configuration. Defaults to no connections.

pub fn set_poll_interval(self, poll_interval: Duration) -> Self[src]

How often an NSQD Lookup Daemon instance should be queried. Defaults to every 60 seconds.

pub fn set_addresses(self, addresses: HashSet<String>) -> Self[src]

The set of HTTP addresses for NSQ Lookup Daemon connections. Defaults to no connections.

Trait Implementations

impl Clone for NSQConsumerLookupConfig[src]

impl Default for NSQConsumerLookupConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,