Struct hdbconnect::ConnectionManager
source · pub struct ConnectionManager { /* private fields */ }
Expand description
Implementation of r2d2’s
ManageConnection
interface.
Implementations§
source§impl ConnectionManager
impl ConnectionManager
sourcepub fn new(connect_params: &ConnectParams) -> ConnectionManager
pub fn new(connect_params: &ConnectParams) -> ConnectionManager
Trait Implementations§
source§impl Debug for ConnectionManager
impl Debug for ConnectionManager
source§impl ManageConnection for ConnectionManager
impl ManageConnection for ConnectionManager
§type Connection = Connection
type Connection = Connection
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