[][src]Module diesel::r2d2

Connection pooling via r2d2.

Note: This module requires enabling the r2d2 feature

Modules

event

Event subscriptions.

Structs

Builder

A builder for a connection pool.

ConnectionManager

An r2d2 connection manager for use with Diesel.

Error

The error type returned by methods in this crate.

LoggingErrorHandler

A HandleError implementation which logs at the error level.

NopConnectionCustomizer

A CustomizeConnection which does nothing.

NopErrorHandler

A HandleError implementation which does nothing.

Pool

A generic connection pool.

PooledConnection

A smart pointer wrapping a connection.

State

Information about the state of a Pool.

Enums

Error

The error used when managing connections with r2d2.

Traits

CustomizeConnection

A trait which allows for customization of connections.

HandleError

A trait which handles errors reported by the ManageConnection.

ManageConnection

A trait which provides connection-specific functionality.

Type Definitions

PoolError

A re-export of r2d2::Error, which is only used by methods on r2d2::Pool.