[][src]Struct tokio_nsq::NSQConfigShared

pub struct NSQConfigShared {
    pub backoff_max_wait: Duration,
    pub backoff_healthy_after: Duration,
    pub compression: Option<NSQConfigSharedCompression>,
    pub tls: Option<NSQConfigSharedTLS>,
    pub credentials: Option<Vec<u8>>,
    pub client_id: Option<String>,
}

Configuration options shared by both produces and consumers

Fields

backoff_max_wait: Durationbackoff_healthy_after: Durationcompression: Option<NSQConfigSharedCompression>tls: Option<NSQConfigSharedTLS>credentials: Option<Vec<u8>>client_id: Option<String>

Implementations

impl NSQConfigShared[src]

pub fn new() -> Self[src]

pub fn set_backoff_max_wait(self, duration: Duration) -> Self[src]

pub fn set_backoff_healthy_after(self, duration: Duration) -> Self[src]

pub fn set_compression(self, compression: NSQConfigSharedCompression) -> Self[src]

pub fn set_credentials(self, credentials: Vec<u8>) -> Self[src]

pub fn set_tls(self, tls: NSQConfigSharedTLS) -> Self[src]

pub fn set_client_id<S: Into<String>>(self, client_id: S) -> Self[src]

Trait Implementations

impl Clone for NSQConfigShared[src]

impl Debug for NSQConfigShared[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, 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>,