pub trait ConnectExt {
// Required methods
async fn connect(uri: &str, user: &str, password: &str) -> Result<Self>
where Self: Sized;
async fn ensure_indexes(&self) -> Result<()>;
}Expand description
Extension trait for connection and initialization operations.
Required Methods§
async fn connect(uri: &str, user: &str, password: &str) -> Result<Self>where
Self: Sized,
async fn ensure_indexes(&self) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".