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.0.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, C> Execute<'c, C> for StatementNamed<'_>where
C: Prepare + 'c,
impl<'c, C> Execute<'c, C> for StatementNamed<'_>where
C: Prepare + '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<'_> as Execute<'c, C>>::ExecuteOutput
type QueryOutput = <StatementNamed<'_> 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, C> ExecuteBlocking<'c, C> for StatementNamed<'_>where
C: Prepare + 'c,
impl<'c, C> ExecuteBlocking<'c, C> for StatementNamed<'_>where
C: Prepare + 'c,
type ExecuteOutput = Result<StatementGuarded<'c, C>, Error>
type QueryOutput = <StatementNamed<'_> 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