pub trait Connector<K> {
    type Connection;
    type Error;
    type ConnectionFuture<'a>: Future<Output = Result<Self::Connection, Self::Error>>
       where Self: 'a,
             K: 'a;

    // Required method
    fn connect(&self, key: K) -> Self::ConnectionFuture<'_>;
}

Required Associated Types§

source

type Connection

source

type Error

source

type ConnectionFuture<'a>: Future<Output = Result<Self::Connection, Self::Error>> where Self: 'a, K: 'a

Required Methods§

source

fn connect(&self, key: K) -> Self::ConnectionFuture<'_>

Implementors§