Struct cdrs::cluster::TcpConnectionsManager
source · pub struct TcpConnectionsManager<A> { /* private fields */ }
Expand description
r2d2
connection manager.
Implementations§
Trait Implementations§
source§impl<A: Authenticator + 'static + Send + Sync> ManageConnection for TcpConnectionsManager<A>
impl<A: Authenticator + 'static + Send + Sync> ManageConnection for TcpConnectionsManager<A>
§type Connection = RefCell<TransportTcp>
type Connection = RefCell<TransportTcp>
The connection type this manager deals with.
source§fn connect(&self) -> Result<Self::Connection, Self::Error>
fn connect(&self) -> Result<Self::Connection, Self::Error>
Attempts to create a new connection.
source§fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
Determines if the connection is still connected to the database. Read more
source§fn has_broken(&self, conn: &mut Self::Connection) -> bool
fn has_broken(&self, conn: &mut Self::Connection) -> bool
Quickly determines if the connection is no longer usable. Read more