[−][src]Struct sqlx::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
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static + Send>>
[src]
self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static + Send>>
fn ping(&mut self) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
[src]
fn begin(
self
) -> Pin<Box<dyn Future<Output = Result<Transaction<Self>, Error>> + 'static + Send>>
[src]
self
) -> Pin<Box<dyn Future<Output = Result<Transaction<Self>, Error>> + 'static + Send>>
impl<C> Deref for PoolConnection<C> where
C: Connect,
[src]
C: Connect,
type Target = C
The resulting type after dereferencing.
fn deref(&self) -> &<PoolConnection<C> as Deref>::Target
[src]
impl<C> DerefMut for PoolConnection<C> where
C: Connect,
[src]
C: Connect,
fn deref_mut(&mut self) -> &mut <PoolConnection<C> as Deref>::Target
[src]
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 as Executor>::Database
The specific database that this type is implemented for.
fn execute<'e, 'q, 'c, E>(
&'c mut self,
query: E
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + 'e + Send>> where
'q: 'e,
'c: 'e,
E: 'e + Execute<'q, <PoolConnection<C> as Executor>::Database>,
[src]
&'c mut self,
query: E
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + 'e + Send>> where
'q: 'e,
'c: 'e,
E: 'e + Execute<'q, <PoolConnection<C> as Executor>::Database>,
fn fetch<'q, E>(
&'e mut self,
query: E
) -> <<C as Executor>::Database as HasCursor<'e, 'q>>::Cursor where
E: Execute<'q, <PoolConnection<C> as Executor>::Database>,
[src]
&'e mut self,
query: E
) -> <<C as Executor>::Database as HasCursor<'e, 'q>>::Cursor where
E: Execute<'q, <PoolConnection<C> as Executor>::Database>,
impl<'c, C, DB> RefExecutor<'c> for &'c mut PoolConnection<C> where
C: Connect<Database = DB>,
DB: Database<Connection = C, Database = DB> + HasCursor<'c2, 'q>,
&'c mut C: RefExecutor<'c>,
<&'c mut C as RefExecutor<'c>>::Database == DB,
[src]
C: Connect<Database = DB>,
DB: Database<Connection = C, Database = DB> + HasCursor<'c2, 'q>,
&'c mut C: RefExecutor<'c>,
<&'c mut C as RefExecutor<'c>>::Database == DB,
type Database = DB
fn fetch_by_ref<'q, E>(
self,
query: E
) -> <<&'c mut PoolConnection<C> as RefExecutor<'c>>::Database as HasCursor<'c, 'q>>::Cursor where
E: Execute<'q, <&'c mut PoolConnection<C> as RefExecutor<'c>>::Database>,
[src]
self,
query: E
) -> <<&'c mut PoolConnection<C> as RefExecutor<'c>>::Database as HasCursor<'c, 'q>>::Cursor where
E: Execute<'q, <&'c mut PoolConnection<C> as RefExecutor<'c>>::Database>,
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> Same<T> for T
type Output = T
Should always be Self
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>,