[][src]Struct odbc_futures::SqlStatementStream

pub struct SqlStatementStream<T> { /* fields omitted */ }

Methods

impl<T> SqlStatementStream<T>[src]

pub fn new<F>(
    statement: SqlStatement,
    unbind: bool,
    poll_fn: F
) -> SqlStatementStream<T> where
    F: FnMut(&mut SqlStatement) -> SqlPoll<Option<T>> + Send + 'static, 
[src]

Trait Implementations

impl<T> StateStream for SqlStatementStream<T>[src]

type Item = T

The items being streamed.

type State = SqlStatement

The state returned when streaming completes.

type Error = SqlError

The error returned.

fn into_future(self) -> IntoFuture<Self>[src]

Returns a future which yields the next element of the stream.

fn into_stream(self) -> IntoStream<Self>[src]

Returns a normal Stream which yields the elements of this stream and discards the state.

fn map<F, B>(self, f: F) -> Map<Self, F> where
    F: FnMut(Self::Item) -> B, 
[src]

Returns a stream which applies a transform to items of this stream.

fn map_err<F, B>(self, f: F) -> MapErr<Self, F> where
    F: FnMut(Self::Error) -> B, 
[src]

Returns a stream which applies a transform to errors of this stream.

fn map_state<F, B>(self, f: F) -> MapState<Self, F> where
    F: FnOnce(Self::State) -> B, 
[src]

Returns a stream which applies a transform to the state of this stream.

fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Item) -> bool
[src]

Returns a stream which filters items of this stream by a predicate.

fn filter_map<F, B>(self, f: F) -> FilterMap<Self, F> where
    F: FnMut(Self::Item) -> Option<B>, 
[src]

Returns a stream which filters and transforms items of this stream by a predicate.

fn collect(self) -> Collect<Self>[src]

Returns a stream which collects all items of this stream into a Vec, returning it along with the stream's state. Read more

fn for_each<F>(self, f: F) -> ForEach<Self, F> where
    F: FnMut(Self::Item), 
[src]

Returns a future which applies a closure to each item of this stream.

Auto Trait Implementations

impl<T> Send for SqlStatementStream<T>

impl<T> !Sync for SqlStatementStream<T>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.