Struct cdrs::connection_manager::ConnectionManager
[−]
[src]
pub struct ConnectionManager<T, X> { /* fields omitted */ }
r2d2 ManageConnection
.
Methods
impl<T: Authenticator + Send + Sync + 'static, X: CDRSTransport + Send + Sync + 'static> ConnectionManager<T, X>
[src]
fn new(
transport: X,
authenticator: T,
compression: Compression
) -> ConnectionManager<T, X>
[src]
transport: X,
authenticator: T,
compression: Compression
) -> ConnectionManager<T, X>
Creates a new instance of ConnectionManager
.
It requires transport, authenticator and compression as inputs.
Trait Implementations
impl<T: Authenticator + Send + Sync + 'static, X: CDRSTransport + Send + Sync + 'static> ManageConnection for ConnectionManager<T, X>
[src]
type Connection = Session<T, X>
The connection type this manager deals with.
type Error = CError
The error type returned by Connection
s.
fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]
Attempts to create a new connection.
fn is_valid(&self, connection: &mut Self::Connection) -> Result<(), Self::Error>
[src]
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _connection: &mut Self::Connection) -> bool
[src]
Quickly determines if the connection is no longer usable. Read more