pub trait Connect: Send + Sync {
// Required method
fn connect(
&self,
cfg: Config,
) -> impl Future<Output = Result<Client, Error>> + Send;
}Expand description
trait for how to produce a new Client and push it into connection pool
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.