Struct r2d2_mysql::pool::MysqlConnectionManager [] [src]

pub struct MysqlConnectionManager {
    // some fields omitted
}

Methods

impl MysqlConnectionManager

fn new<T: IntoConnectParams>(params: T) -> Result<MysqlConnectionManager, MyError>

Creates a new MysqlConnectionManager.

See postgres::Connection::connect for a description of the parameter types.

Trait Implementations

impl ManageConnection for MysqlConnectionManager

type Connection = MyConn

type Error = MyError

fn connect(&self) -> Result<MyConn, MyError>

fn is_valid(&self, conn: &mut MyConn) -> Result<(), MyError>

fn has_broken(&self, conn: &mut MyConn) -> bool

Derived Implementations

impl Debug for MysqlConnectionManager

fn fmt(&self, __arg_0: &mut Formatter) -> Result