[−][src]Struct roa_diesel::ConnectionManager
An r2d2 connection manager for use with Diesel.
See the r2d2 documentation for usage examples.
Methods
impl<T> ConnectionManager<T>
[src]
pub fn new<S>(database_url: S) -> ConnectionManager<T> where
S: Into<String>,
[src]
S: Into<String>,
Returns a new connection manager, which establishes connections to the given database URL.
Trait Implementations
impl<T> Clone for ConnectionManager<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> ConnectionManager<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for ConnectionManager<T> where
T: Debug,
[src]
T: Debug,
impl<T> ManageConnection for ConnectionManager<T> where
T: Connection + Send + 'static,
[src]
T: Connection + Send + 'static,
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>
[src]
fn is_valid(&self, conn: &mut T) -> Result<(), Error>
[src]
fn has_broken(&self, _conn: &mut T) -> bool
[src]
impl<T> Sync for ConnectionManager<T> where
T: 'static + Send,
[src]
T: 'static + Send,
Auto Trait Implementations
impl<T> RefUnwindSafe for ConnectionManager<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ConnectionManager<T> where
T: Send,
T: Send,
impl<T> Unpin for ConnectionManager<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ConnectionManager<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> State for T where
T: 'static + Clone + Send + Sync,
T: 'static + Clone + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,