Struct rsmc_tokio::ClientConfig[][src]

pub struct ClientConfig<P> where
    P: Compressor
{ /* fields omitted */ }

Set configuration values for a memcached client.

Implementations

impl<P> ClientConfig<P> where
    P: Compressor
[src]

pub fn new(endpoints: Vec<String, Global>, compressor: P) -> ClientConfig<P>[src]

Create a new client config from the given memcached servers and compressor. If no compression is desired, then use ClientConfig::new_uncompressed

impl ClientConfig<NoCompressor>[src]

pub fn new_uncompressed(
    endpoints: Vec<String, Global>
) -> ClientConfig<NoCompressor>
[src]

Create a new client config with no compression.

Trait Implementations

impl<P> Clone for ClientConfig<P> where
    P: Clone + Compressor
[src]

impl<P> Debug for ClientConfig<P> where
    P: Debug + Compressor
[src]

impl<C, P> Manager<Client<C, P>, Error> for ClientConfig<P> where
    C: Connection,
    P: Compressor
[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for ClientConfig<P> where
    P: RefUnwindSafe

impl<P> Send for ClientConfig<P>

impl<P> Sync for ClientConfig<P>

impl<P> Unpin for ClientConfig<P> where
    P: Unpin

impl<P> UnwindSafe for ClientConfig<P> where
    P: UnwindSafe

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.