Trait thrift_pool::MakeThriftConnection[][src]

pub trait MakeThriftConnection {
    type Error;
    type Output;
    fn make_thrift_connection(&self) -> Result<Self::Output, Self::Error>;
}
Expand description

A trait that creates new ThriftConnections

Used by ThriftConnectionManager to implement [bb8::ManageConnection::connect] and/or r2d2::ManageConnection::connect

Associated Types

The error type returned when a connection creation fails

The connection type the we are trying to create

Required methods

Attempt to create a new connection

Implementors