pub struct StatementNamed<'a> { /* private fields */ }
Trait Implementations§
source§impl<'a> Clone for StatementNamed<'a>
impl<'a> Clone for StatementNamed<'a>
source§fn clone(&self) -> StatementNamed<'a>
fn clone(&self) -> StatementNamed<'a>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'c, 's, C> Execute<'c, C> for StatementNamed<'s>where
C: Prepare + 'c,
's: 'c,
impl<'c, 's, C> Execute<'c, C> for StatementNamed<'s>where
C: Prepare + 'c,
's: 'c,
source§type ExecuteOutput = ResultFuture<IntoGuarded<'c, Pin<Box<dyn Future<Output = Result<Statement, Error>> + Send + 'c>>, C>>
type ExecuteOutput = ResultFuture<IntoGuarded<'c, Pin<Box<dyn Future<Output = Result<Statement, Error>> + Send + 'c>>, C>>
outcome of execute.
used for single time database response: number of rows affected by execution for example.
source§type QueryOutput = <StatementNamed<'s> as Execute<'c, C>>::ExecuteOutput
type QueryOutput = <StatementNamed<'s> as Execute<'c, C>>::ExecuteOutput
outcome of query.
used for repeated database response: database rows for example Read more
source§fn execute(self, cli: &'c C) -> Self::ExecuteOutput
fn execute(self, cli: &'c C) -> Self::ExecuteOutput
define how a statement is executed with single time response
source§fn query(self, cli: &'c C) -> Self::QueryOutput
fn query(self, cli: &'c C) -> Self::QueryOutput
define how a statement is queried with repeated response
source§impl<'c, 's, C> ExecuteBlocking<'c, C> for StatementNamed<'s>where
C: Prepare + 'c,
's: 'c,
impl<'c, 's, C> ExecuteBlocking<'c, C> for StatementNamed<'s>where
C: Prepare + 'c,
's: 'c,
type ExecuteOutput = Result<StatementGuarded<'c, C>, Error>
type QueryOutput = <StatementNamed<'s> as ExecuteBlocking<'c, C>>::ExecuteOutput
fn execute_blocking(self, cli: &'c C) -> Self::ExecuteOutput
fn query_blocking(self, cli: &'c C) -> Self::QueryOutput
source§impl<'c, 's> ExecuteMut<'c, PoolConnection<'_>> for StatementNamed<'s>where
's: 'c,
impl<'c, 's> ExecuteMut<'c, PoolConnection<'_>> for StatementNamed<'s>where
's: 'c,
type ExecuteMutOutput = StatementCacheFuture<'c>
type QueryMutOutput = <StatementNamed<'s> as ExecuteMut<'c, PoolConnection<'_>>>::ExecuteMutOutput
fn execute_mut(self, cli: &'c mut PoolConnection<'_>) -> Self::ExecuteMutOutput
fn query_mut(self, cli: &'c mut PoolConnection<'_>) -> Self::QueryMutOutput
impl<'a> Copy for StatementNamed<'a>
Auto Trait Implementations§
impl<'a> Freeze for StatementNamed<'a>
impl<'a> RefUnwindSafe for StatementNamed<'a>
impl<'a> Send for StatementNamed<'a>
impl<'a> Sync for StatementNamed<'a>
impl<'a> Unpin for StatementNamed<'a>
impl<'a> UnwindSafe for StatementNamed<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)