Struct r2d2_memcache::connection_manager::MemcacheConnectionManager
[−]
[src]
pub struct MemcacheConnectionManager { /* fields omitted */ }
Methods
impl MemcacheConnectionManager
[src]
fn new<T: IntoConnectionInfo>(
params: T
) -> Result<MemcacheConnectionManager, MemcacheError>
params: T
) -> Result<MemcacheConnectionManager, MemcacheError>
Creates a new MemcacheConnectionManager
.
See memcache::Connection::connect
for a description of the parameter
types.
Trait Implementations
impl Debug for MemcacheConnectionManager
[src]
impl ManageConnection for MemcacheConnectionManager
[src]
type Connection = Connection
The connection type this manager deals with.
type Error = Error
The error type returned by Connection
s.
fn connect(&self) -> Result<Connection, Error>
Attempts to create a new connection.
fn is_valid(&self, connection: &mut Connection) -> Result<(), Error>
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _connection: &mut Connection) -> bool
Quickly determines if the connection is no longer usable. Read more