[−][src]Struct parallel_stream::Map
A parallel stream that maps value of another stream with a function.
Methods
impl<T: Send + 'static> Map<T>
[src]
pub fn new<S, F, Fut>(stream: S, f: F) -> Self where
S: ParallelStream,
F: FnMut(S::Item) -> Fut + Send + Sync + Copy + 'static,
Fut: Future<Output = T> + Send,
[src]
S: ParallelStream,
F: FnMut(S::Item) -> Fut + Send + Sync + Copy + 'static,
Fut: Future<Output = T> + Send,
Create a new instance of Map
.
Trait Implementations
impl<T: Debug> Debug for Map<T>
[src]
impl<T: Send + 'static> ParallelStream for Map<T>
[src]
type Item = T
The type of items yielded by this stream.
fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
[src]
fn map<F, T, Fut>(self, f: F) -> Map<T> where
F: FnMut(Self::Item) -> Fut + Send + Sync + Copy + 'static,
T: Send + 'static,
Fut: Future<Output = T> + Send,
[src]
F: FnMut(Self::Item) -> Fut + Send + Sync + Copy + 'static,
T: Send + 'static,
Fut: Future<Output = T> + Send,
fn next(&mut self) -> NextFuture<Self>
[src]
fn take(self, n: usize) -> Take<Self> where
Self: Sized,
[src]
Self: Sized,
fn for_each<F, Fut>(self, f: F) -> ForEach where
F: FnMut(Self::Item) -> Fut + Send + Sync + Copy + 'static,
Fut: Future<Output = ()> + Send,
[src]
F: FnMut(Self::Item) -> Fut + Send + Sync + Copy + 'static,
Fut: Future<Output = ()> + Send,
impl<'__pin, T> Unpin for Map<T> where
__Origin<'__pin, T>: Unpin,
[src]
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Map<T>
impl<T> Send for Map<T> where
T: Send,
T: Send,
impl<T> Sync for Map<T> where
T: Send,
T: Send,
impl<T> !UnwindSafe for Map<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,