[−][src]Struct mobc::PooledConnection
A smart pointer wrapping a connection.
Methods
impl<M> PooledConnection<M> where
M: ConnectionManager,
[src]
M: ConnectionManager,
pub fn take_raw_conn(&mut self) -> M::Connection
[src]
Takes the raw database connection
pub fn set_raw_conn(&mut self, raw: M::Connection)
[src]
Put back the raw database connection
Trait Implementations
impl<M> Deref for PooledConnection<M> where
M: ConnectionManager,
[src]
M: ConnectionManager,
type Target = M::Connection
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<M> DerefMut for PooledConnection<M> where
M: ConnectionManager,
[src]
M: ConnectionManager,
fn deref_mut(&mut self) -> &mut M::Connection
[src]
impl<M> Drop for PooledConnection<M> where
M: ConnectionManager,
[src]
M: ConnectionManager,
Auto Trait Implementations
impl<M> !RefUnwindSafe for PooledConnection<M>
impl<M> Send for PooledConnection<M> where
<M as ConnectionManager>::Connection: Send,
<M as ConnectionManager>::Error: Send,
<M as ConnectionManager>::Executor: Send + Sync,
<M as ConnectionManager>::Connection: Send,
<M as ConnectionManager>::Error: Send,
<M as ConnectionManager>::Executor: Send + Sync,
impl<M> Sync for PooledConnection<M> where
<M as ConnectionManager>::Connection: Send + Sync,
<M as ConnectionManager>::Error: Send,
<M as ConnectionManager>::Executor: Send + Sync,
<M as ConnectionManager>::Connection: Send + Sync,
<M as ConnectionManager>::Error: Send,
<M as ConnectionManager>::Executor: Send + Sync,
impl<M> Unpin for PooledConnection<M> where
<M as ConnectionManager>::Connection: Unpin,
<M as ConnectionManager>::Connection: Unpin,
impl<M> !UnwindSafe for PooledConnection<M>
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, 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>,