ConnectorAdaptor

Trait ConnectorAdaptor 

Source
pub trait ConnectorAdaptor<R> {
    type Connect: Connect;

    // Required method
    fn wrap(connector: PoolConnector<R>) -> Self::Connect;
}
Expand description

A trait used to wrap the PoolConnector used by default into a different type that implements Connect

Required Associated Types§

Required Methods§

Source

fn wrap(connector: PoolConnector<R>) -> Self::Connect

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.

Implementors§

Source§

impl<R> ConnectorAdaptor<R> for DefaultConnectorAdapator
where R: 'static + Clone + Send + Sync + Service<Name>, R::Error: 'static + Send + Sync + Error, R::Future: Send + Future<Output = Result<R::Response, R::Error>>, R::Response: Iterator<Item = SocketAddr>,