pub struct Pipe<A: Statement + Send, B: StatementWithInput<Input = A::Output> + Send> { /* private fields */ }
Expand description
Link two Statement
s and use the output of A
as the input of B
.
Trait Implementations§
Source§impl<A: Statement + Send, B: StatementWithInput<Input = A::Output> + Send> Statement for Pipe<A, B>
impl<A: Statement + Send, B: StatementWithInput<Input = A::Output> + Send> Statement for Pipe<A, B>
Source§type Output = <B as StatementWithInput>::Output
type Output = <B as StatementWithInput>::Output
Output of this statement.
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 Pipe<A, B>
impl<A, B> RefUnwindSafe for Pipe<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Pipe<A, B>
impl<A, B> Sync for Pipe<A, B>
impl<A, B> Unpin for Pipe<A, B>
impl<A, B> UnwindSafe for Pipe<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