Struct mtop_client::MemcachedPool
source · pub struct MemcachedPool { /* private fields */ }Implementations§
source§impl MemcachedPool
impl MemcachedPool
pub async fn new(handle: Handle, config: PoolConfig) -> Result<Self, MtopError>
pub async fn get(&self, host: &str) -> Result<PooledMemcached, MtopError>
pub async fn put(&self, client: PooledMemcached)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemcachedPool
impl Send for MemcachedPool
impl Sync for MemcachedPool
impl Unpin for MemcachedPool
impl !UnwindSafe for MemcachedPool
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