Trait ConnectionCreator

Source
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

Required Associated Types§

Source

type Error

Source

type Future: Future<Output = Result<T, Self::Error>>

Required Methods§

Source

fn create_connection(&self, params: &P) -> Self::Future

Implementors§