pub struct PooledConnection<M: ManageConnection> { /* private fields */ }Expand description
A connection checked out of its LocalPool. Derefs to the connection;
dropping it runs has_broken and either
returns the connection to this thread’s idle list or drops it and frees the
slot. If the pool has been closed, the connection is always
dropped.
Trait Implementations§
Source§impl<M: ManageConnection> Debug for PooledConnection<M>
impl<M: ManageConnection> Debug for PooledConnection<M>
Source§impl<M: ManageConnection> Deref for PooledConnection<M>
impl<M: ManageConnection> Deref for PooledConnection<M>
Source§type Target = <M as ManageConnection>::Connection
type Target = <M as ManageConnection>::Connection
The resulting type after dereferencing.
Source§fn deref(&self) -> &M::Connection
fn deref(&self) -> &M::Connection
Dereferences the value.
Source§impl<M: ManageConnection> DerefMut for PooledConnection<M>
impl<M: ManageConnection> DerefMut for PooledConnection<M>
Source§fn deref_mut(&mut self) -> &mut M::Connection
fn deref_mut(&mut self) -> &mut M::Connection
Mutably dereferences the value.
Source§impl<M: ManageConnection> Drop for PooledConnection<M>
impl<M: ManageConnection> Drop for PooledConnection<M>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for PooledConnection<M>
impl<M> !Send for PooledConnection<M>
impl<M> !Sync for PooledConnection<M>
impl<M> !UnwindSafe for PooledConnection<M>
impl<M> Freeze for PooledConnection<M>
impl<M> Unpin for PooledConnection<M>
impl<M> UnsafeUnpin for PooledConnection<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more