Struct r2d2_pulsar::ConnectionManager
source · pub struct ConnectionManager { /* private fields */ }
Trait Implementations§
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