Struct diesel::r2d2::ConnectionManager [−][src]
An r2d2 connection manager for use with Diesel.
See the r2d2 documentation for usage examples.
Methods
impl<T> ConnectionManager<T>
[src]
[−]
impl<T> ConnectionManager<T>
pub fn new<S: Into<String>>(database_url: S) -> Self
[src]
[−]
pub fn new<S: Into<String>>(database_url: S) -> Self
Returns a new connection manager, which establishes connections to the given database URL.
Trait Implementations
impl<T: Debug> Debug for ConnectionManager<T>
[src]
[+]
impl<T: Debug> Debug for ConnectionManager<T>
impl<T: Clone> Clone for ConnectionManager<T>
[src]
[+]
impl<T: Clone> Clone for ConnectionManager<T>
impl<T: Send + 'static> Sync for ConnectionManager<T>
[src]
impl<T: Send + 'static> Sync for ConnectionManager<T>
impl<T> ManageConnection for ConnectionManager<T> where
T: Connection + Send + 'static,
[src]
[+]
impl<T> ManageConnection for ConnectionManager<T> where
T: Connection + Send + 'static,
Auto Trait Implementations
impl<T> Send for ConnectionManager<T> where
T: Send,
impl<T> Send for ConnectionManager<T> where
T: Send,