[−][src]Struct sqlx_core::pool::PoolConnection
A connection checked out from Pool.
Will be returned to the pool on-drop.
Trait Implementations
impl<C> Borrow<C> for PoolConnection<C> where
C: Connect, [src]
C: Connect,
impl<C> BorrowMut<C> for PoolConnection<C> where
C: Connect, [src]
C: Connect,
fn borrow_mut(&mut self) -> &mut C[src]
impl<C> Connection for PoolConnection<C> where
C: Connect, [src]
C: Connect,
fn close(self) -> BoxFuture<'static, Result<()>>[src]
fn ping(&mut self) -> BoxFuture<Result<()>>[src]
fn begin(self) -> BoxFuture<'static, Result<Transaction<Self>>> where
Self: Sized, [src]
Self: Sized,
impl<C> Deref for PoolConnection<C> where
C: Connect, [src]
C: Connect,
impl<C> DerefMut for PoolConnection<C> where
C: Connect, [src]
C: Connect,
impl<C> Drop for PoolConnection<C> where
C: Connect, [src]
C: Connect,
Returns the connection to the Pool it was checked-out from.
impl<C> Executor for PoolConnection<C> where
C: Connect, [src]
C: Connect,
type Database = C::Database
The specific database that this type is implemented for.
fn execute<'e, 'q: 'e, 'c: 'e, E: 'e>(
&'c mut self,
query: E
) -> BoxFuture<'e, Result<u64>> where
E: Execute<'q, Self::Database>, [src]
&'c mut self,
query: E
) -> BoxFuture<'e, Result<u64>> where
E: Execute<'q, Self::Database>,
fn fetch<'e, 'q, E>(
&'e mut self,
query: E
) -> <C::Database as HasCursor<'_, 'q>>::Cursor where
E: Execute<'q, Self::Database>, [src]
&'e mut self,
query: E
) -> <C::Database as HasCursor<'_, 'q>>::Cursor where
E: Execute<'q, Self::Database>,
impl<'c, C, DB> RefExecutor<'c> for &'c mut PoolConnection<C> where
C: Connect<Database = DB>,
DB: Database<Connection = C>,
DB: for<'c2, 'q> HasCursor<'c2, 'q, Database = DB>,
&'c mut C: RefExecutor<'c, Database = DB>, [src]
C: Connect<Database = DB>,
DB: Database<Connection = C>,
DB: for<'c2, 'q> HasCursor<'c2, 'q, Database = DB>,
&'c mut C: RefExecutor<'c, Database = DB>,
Auto Trait Implementations
impl<C> !RefUnwindSafe for PoolConnection<C>
impl<C> Send for PoolConnection<C>
impl<C> Sync for PoolConnection<C> where
C: Sync,
C: Sync,
impl<C> Unpin for PoolConnection<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for PoolConnection<C>
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>,