Struct thrift_pool::ThriftConnectionManager [−][src]
pub struct ThriftConnectionManager<T>(_);Expand description
An implementor of [bb8::ManageConnection] and/or r2d2::ManageConnection.
T should a MakeThriftConnection and T::Output should be a ThriftConnection
Implementations
Trait Implementations
impl<E: Error + 'static, C: ThriftConnection<Error = E> + Send + 'static, T: MakeThriftConnection<Output = C, Error = E> + Send + Sync + 'static> ManageConnection for ThriftConnectionManager<T>
impl<E: Error + 'static, C: ThriftConnection<Error = E> + Send + 'static, T: MakeThriftConnection<Output = C, Error = E> + Send + Sync + 'static> ManageConnection for ThriftConnectionManager<T>
type Connection = C
type Connection = C
The connection type this manager deals with.
type Error = E
type Error = E
The error type returned by Connections.
Attempts to create a new connection.
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ThriftConnectionManager<T> where
T: RefUnwindSafe,
impl<T> Send for ThriftConnectionManager<T> where
T: Send,
impl<T> Sync for ThriftConnectionManager<T> where
T: Sync,
impl<T> Unpin for ThriftConnectionManager<T> where
T: Unpin,
impl<T> UnwindSafe for ThriftConnectionManager<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
