pub struct MemcacheConnectionManager<'a> { /* private fields */ }
Implementations
sourceimpl<'a> MemcacheConnectionManager<'a>
impl<'a> MemcacheConnectionManager<'a>
sourcepub fn new<C: Connectable<'a>>(target: C) -> MemcacheConnectionManager<'a>
pub fn new<C: Connectable<'a>>(target: C) -> MemcacheConnectionManager<'a>
Creates a new MemcacheConnectionManager
.
See memcache::Connection::connect
for a description of the parameter
types.
Trait Implementations
sourceimpl<'a> Debug for MemcacheConnectionManager<'a>
impl<'a> Debug for MemcacheConnectionManager<'a>
sourceimpl ManageConnection for MemcacheConnectionManager<'static>
impl ManageConnection for MemcacheConnectionManager<'static>
type Connection = Client
type Connection = Client
The connection type this manager deals with.
sourcefn is_valid(&self, connection: &mut Client) -> Result<(), Error>
fn is_valid(&self, connection: &mut Client) -> Result<(), Error>
Determines if the connection is still connected to the database. Read more
sourcefn has_broken(&self, _connection: &mut Client) -> bool
fn has_broken(&self, _connection: &mut Client) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for MemcacheConnectionManager<'a>
impl<'a> Send for MemcacheConnectionManager<'a>
impl<'a> Sync for MemcacheConnectionManager<'a>
impl<'a> Unpin for MemcacheConnectionManager<'a>
impl<'a> UnwindSafe for MemcacheConnectionManager<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more