pub trait Connector<K> {
    type Connection;
    type Error;

    // Required method
    fn connect(
        &self,
        key: K
    ) -> impl Future<Output = Result<Self::Connection, Self::Error>>;
}

Required Associated Types§

Required Methods§

source

fn connect( &self, key: K ) -> impl Future<Output = Result<Self::Connection, Self::Error>>

Object Safety§

This trait is not object safe.

Implementors§