Trait mongodb_ext::MongoClient
source · [−]pub trait MongoClient where
Self: Sized, {
const NAME: &'static str;
fn new<'life0, 'async_trait>(
connection_str: &'life0 str
) -> Pin<Box<dyn Future<Output = MongoResult<Self>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn ping<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = MongoResult<Document>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Async trait that is implemented automatically on the database handler struct by mongo_db
.
Associated Constants
Required methods
Initializer funtion of the database.