Struct r2d2_memcache::connection_manager::MemcacheConnectionManager
[−]
[src]
pub struct MemcacheConnectionManager { /* fields omitted */ }
Methods
impl MemcacheConnectionManager
[src]
pub fn new<T: IntoConnectionInfo>(
params: T
) -> Result<MemcacheConnectionManager, MemcacheError>
[src]
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl ManageConnection for MemcacheConnectionManager
[src]
type Connection = Client
The connection type this manager deals with.
type Error = Error
The error type returned by Connection
s.
fn connect(&self) -> Result<Client, Error>
[src]
Attempts to create a new connection.
fn is_valid(&self, connection: &mut Client) -> Result<(), Error>
[src]
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _connection: &mut Client) -> bool
[src]
Quickly determines if the connection is no longer usable. Read more