Trait diesel::r2d2::R2D2Connection[][src]

pub trait R2D2Connection: Connection {
    fn ping(&mut self) -> QueryResult<()>;
}

A trait indicating a connection could be used inside a r2d2 pool

Required methods

fn ping(&mut self) -> QueryResult<()>[src]

Check if a connection is still valid

Loading content...

Implementors

impl R2D2Connection for MysqlConnection[src]

impl R2D2Connection for PgConnection[src]

impl R2D2Connection for SqliteConnection[src]

Loading content...