Skip to main content

ConnectExt

Trait ConnectExt 

Source
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§

Source

async fn connect(uri: &str, user: &str, password: &str) -> Result<Self>
where Self: Sized,

Source

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".

Implementors§