Trait tiberius::stmt::ResultStreamExt [] [src]

pub trait ResultStreamExt<I: BoxableIo>: StateStream {
    fn for_each_row<F>(self, f: F) -> ForEachRow<I, Self, F>
    where
        Self: Sized + StateStream<Item = QueryStream<I>, Error = <QueryStream<I> as Stream>::Error>,
        F: FnMut(<QueryStream<I> as Stream>::Item) -> Result<(), TdsError>
;
fn single(self) -> SingleResultSet<I, Self>
    where
        Self: Sized + StateStream<Item = ExecFuture<I>, Error = <ExecFuture<I> as Future>::Error>
; }

Required Methods

Only expect 1 result set (e.g. if you're only executing one query) and execute a given closure for the results of the first result set

Panics

This will panic if there is more than 1 resultset

Expect 1 resultset and unpacks the single underlying ExecFuture

Panics

This will panic if there is more than 1 resultset

Implementors