Trait thrift_pool::ThriftConnection[][src]

pub trait ThriftConnection {
    type Error;
    fn is_valid(&mut self) -> Result<(), Self::Error>;

    fn has_broken(&mut self) -> bool { ... }
}
Expand description

Checks the validity of the connection

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

Associated Types

See r2d2::ManageConnection::Error and/or [bb8::ManageConnection::Error]

Required methods

See r2d2::ManageConnection::is_valid and/or [bb8::ManageConnection::is_valid]

Provided methods

See r2d2::ManageConnection::has_broken and/or [bb8::ManageConnection::has_broken]

Implementors