[−][src]Struct odbc_futures::SqlStatementStream
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]
statement: SqlStatement,
unbind: bool,
poll_fn: F
) -> SqlStatementStream<T> where
F: FnMut(&mut SqlStatement) -> SqlPoll<Option<T>> + Send + 'static,
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 poll(
&mut self
) -> Poll<StreamEvent<T, SqlStatement>, (SqlError, SqlStatement)>
[src]
&mut self
) -> Poll<StreamEvent<T, SqlStatement>, (SqlError, SqlStatement)>
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]
F: FnMut(Self::Item) -> B,
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]
F: FnMut(Self::Error) -> B,
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]
F: FnOnce(Self::State) -> B,
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]
F: FnMut(&Self::Item) -> bool,
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]
F: FnMut(Self::Item) -> Option<B>,
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]
F: FnMut(Self::Item),
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,