Struct rsmc_tokio::ClientConfig [−][src]
Set configuration values for a memcached client.
Implementations
impl<P> ClientConfig<P> where
P: Compressor,
[src]
P: Compressor,
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]
endpoints: Vec<String, Global>
) -> ClientConfig<NoCompressor>
Create a new client config with no compression.
Trait Implementations
impl<P> Clone for ClientConfig<P> where
P: Clone + Compressor,
[src]
P: Clone + Compressor,
pub fn clone(&self) -> ClientConfig<P>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P> Debug for ClientConfig<P> where
P: Debug + Compressor,
[src]
P: Debug + Compressor,
impl<C, P> Manager<Client<C, P>, Error> for ClientConfig<P> where
C: Connection,
P: Compressor,
[src]
C: Connection,
P: Compressor,
pub fn create<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Client<C, P>, Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
ClientConfig<P>: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Client<C, P>, Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
ClientConfig<P>: 'async_trait,
pub fn recycle<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 mut Client<C, P>
) -> Pin<Box<dyn Future<Output = Result<(), RecycleError<Error>>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
ClientConfig<P>: 'async_trait,
[src]
&'life0 self,
client: &'life1 mut Client<C, P>
) -> Pin<Box<dyn Future<Output = Result<(), RecycleError<Error>>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
ClientConfig<P>: 'async_trait,
Auto Trait Implementations
impl<P> RefUnwindSafe for ClientConfig<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for ClientConfig<P>
impl<P> Sync for ClientConfig<P>
impl<P> Unpin for ClientConfig<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for ClientConfig<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,