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