pub struct Then<A: Statement, B: Statement> { /* private fields */ }
Expand description
Link two Statement
s.
Statement B
is only executed if A
fails.
Trait Implementations§
Source§impl<A: Statement + Send, B: Statement + Send> Statement for Then<A, B>
impl<A: Statement + Send, B: Statement + Send> Statement for Then<A, B>
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<A, B> Freeze for Then<A, B>
impl<A, B> RefUnwindSafe for Then<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Then<A, B>
impl<A, B> Sync for Then<A, B>
impl<A, B> Unpin for Then<A, B>
impl<A, B> UnwindSafe for Then<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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