pub struct TracedStatement<Q: Statement> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<Q: Statement> Statement for TracedStatement<Q>
impl<Q: Statement> Statement for TracedStatement<Q>
Source§fn execute<S: SqlExecutor>(
self,
connection: &S,
) -> Result<Self::Output, S::Error>
fn execute<S: SqlExecutor>( self, connection: &S, ) -> Result<Self::Output, S::Error>
Execute the statement and return the result. Read more
Source§fn execute_mut<S: SqlExecutorMut>(
self,
connection: &mut S,
) -> Result<Self::Output, S::Error>
fn execute_mut<S: SqlExecutorMut>( self, connection: &mut S, ) -> Result<Self::Output, S::Error>
Execute the statement and return the result. Read more
Source§async fn execute_async<S: SqlExecutorAsync>(
self,
connection: &mut S,
) -> Result<Self::Output, S::Error>
async fn execute_async<S: SqlExecutorAsync>( self, connection: &mut S, ) -> Result<Self::Output, S::Error>
Execute the statement and return the result. Read more
Source§fn then<Q: Statement>(self, statement: Q) -> Then<Self, Q>where
Self: Sized,
fn then<Q: Statement>(self, statement: Q) -> Then<Self, Q>where
Self: Sized,
If this statement succeeds, then execute the next
statement
.Source§fn pipe<Q: StatementWithInput<Input = Self::Output> + Send>(
self,
statement: Q,
) -> Pipe<Self, Q>where
Self: Sized,
fn pipe<Q: StatementWithInput<Input = Self::Output> + Send>(
self,
statement: Q,
) -> Pipe<Self, Q>where
Self: Sized,
if the current statement succeeds, then execute the next
statement
with output of the
current Statement
.Source§fn spanned(self, span: Span) -> TracedStatement<Self>where
Self: Sized,
fn spanned(self, span: Span) -> TracedStatement<Self>where
Self: Sized,
Instrument the current statement with the given
Span
Source§fn spanned_in_current(self) -> TracedStatement<Self>where
Self: Sized,
fn spanned_in_current(self) -> TracedStatement<Self>where
Self: Sized,
Instrument the current statement with currently active
Span
Auto Trait Implementations§
impl<Q> Freeze for TracedStatement<Q>where
Q: Freeze,
impl<Q> !RefUnwindSafe for TracedStatement<Q>
impl<Q> Send for TracedStatement<Q>
impl<Q> Sync for TracedStatement<Q>where
Q: Sync,
impl<Q> Unpin for TracedStatement<Q>where
Q: Unpin,
impl<Q> !UnwindSafe for TracedStatement<Q>
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