pub trait ConnectionCreator<T, P> {
type Error;
type Future: Future<Output = Result<T, Self::Error>>;
// Required method
fn create_connection(&self, params: &P) -> Self::Future;
}Expand description
Connection creator trait
pub trait ConnectionCreator<T, P> {
type Error;
type Future: Future<Output = Result<T, Self::Error>>;
// Required method
fn create_connection(&self, params: &P) -> Self::Future;
}Connection creator trait