Struct r2d2_mongodb::MongodbConnectionManager [−][src]
pub struct MongodbConnectionManager { /* fields omitted */ }Trait Implementations
impl ManageConnection for MongodbConnectionManager[src]
impl ManageConnection for MongodbConnectionManagertype Connection = Database
The connection type this manager deals with.
type Error = Error
The error type returned by Connections.
fn connect(&self) -> Result<Database, Error>[src]
fn connect(&self) -> Result<Database, Error>Attempts to create a new connection.
fn is_valid(&self, db: &mut Database) -> Result<(), Error>[src]
fn is_valid(&self, db: &mut Database) -> Result<(), Error>Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _db: &mut Database) -> bool[src]
fn has_broken(&self, _db: &mut Database) -> boolQuickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl Send for MongodbConnectionManager
impl Send for MongodbConnectionManagerimpl Sync for MongodbConnectionManager
impl Sync for MongodbConnectionManager