Struct hdbconnect::ConnectionManager [−][src]
pub struct ConnectionManager { /* fields omitted */ }
Implementation of r2d2's
ManageConnection
interface.
Methods
impl ConnectionManager
[src]
impl ConnectionManager
pub fn new(connect_params: &ConnectParams) -> ConnectionManager
[src]
pub fn new(connect_params: &ConnectParams) -> ConnectionManager
Trait Implementations
impl ManageConnection for ConnectionManager
[src]
impl ManageConnection for ConnectionManager
type Connection = Connection
The connection type this manager deals with.
type Error = HdbError
The error type returned by Connection
s.
fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]
fn connect(&self) -> Result<Self::Connection, Self::Error>
Attempts to create a new connection.
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
[src]
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
[src]
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl Send for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Sync for ConnectionManager