[−][src]Struct tang_rs::PoolRefOwned
Implementations
impl<M: Manager> PoolRefOwned<M>
[src]
pub fn get_conn(&mut self) -> &mut M::Connection
[src]
get a mut reference of connection.
pub fn take_conn(&mut self) -> Option<M::Connection>
[src]
take the the ownership of connection from pool and it won't be pushed back to pool anymore.
pub fn push_conn(&mut self, conn: M::Connection)
[src]
manually push a connection to pool. We treat this connection as a new born one.
operation will fail if the pool is already in full capacity(no error will return and this connection will be dropped silently)
Trait Implementations
impl<M: Manager> Deref for PoolRefOwned<M>
[src]
type Target = M::Connection
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<M: Manager> DerefMut for PoolRefOwned<M>
[src]
impl<M: Manager> Drop for PoolRefOwned<M>
[src]
Auto Trait Implementations
impl<M> !RefUnwindSafe for PoolRefOwned<M>
impl<M> Send for PoolRefOwned<M> where
<M as Manager>::Connection: Send,
<M as Manager>::Connection: Send,
impl<M> Sync for PoolRefOwned<M> where
<M as Manager>::Connection: Sync,
<M as Manager>::Connection: Sync,
impl<M> Unpin for PoolRefOwned<M> where
<M as Manager>::Connection: Unpin,
<M as Manager>::Connection: Unpin,
impl<M> !UnwindSafe for PoolRefOwned<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>,