[−][src]Struct actix::fut::StreamMap
A stream combinator which will change the type of a stream from one type to another.
This is produced by the ActorStream::map
method.
Trait Implementations
impl<S, F, U> ActorStream for StreamMap<S, F> where
S: ActorStream,
F: FnMut(S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> U,
[src]
S: ActorStream,
F: FnMut(S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> U,
type Item = U
The type of item this stream will yield on success.
type Actor = S::Actor
The actor within which this stream runs.
fn poll_next(
self: Pin<&mut Self>,
act: &mut Self::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context
) -> Poll<Option<U>>
[src]
self: Pin<&mut Self>,
act: &mut Self::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context
) -> Poll<Option<U>>
fn map<U, F>(self, f: F) -> StreamMap<Self, F> where
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
[src]
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
fn then<F, U>(self, f: F) -> StreamThen<Self, F, U> where
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = Self::Actor>,
Self: Unpin + Sized,
[src]
F: FnMut(Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = Self::Actor>,
Self: Unpin + Sized,
fn fold<F, T, Fut>(self, init: T, f: F) -> StreamFold<Self, F, Fut, T> where
F: FnMut(T, Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> Fut,
Fut: IntoActorFuture<Actor = Self::Actor, Output = T>,
Self: Sized,
[src]
F: FnMut(T, Self::Item, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> Fut,
Fut: IntoActorFuture<Actor = Self::Actor, Output = T>,
Self: Sized,
fn timeout(self, timeout: Duration) -> StreamTimeout<Self> where
Self: Sized + Unpin,
[src]
Self: Sized + Unpin,
fn finish(self) -> StreamFinish<Self> where
Self: Sized + Unpin,
[src]
Self: Sized + Unpin,
impl<S: Debug, F: Debug> Debug for StreamMap<S, F>
[src]
impl<S, F> PinnedDrop for StreamMap<S, F>
[src]
impl<'pin, S, F> Unpin for StreamMap<S, F> where
__StreamMap<'pin, S, F>: Unpin,
[src]
__StreamMap<'pin, S, F>: Unpin,
Auto Trait Implementations
impl<S, F> RefUnwindSafe for StreamMap<S, F> where
F: RefUnwindSafe,
S: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, F> Send for StreamMap<S, F> where
F: Send,
S: Send,
F: Send,
S: Send,
impl<S, F> Sync for StreamMap<S, F> where
F: Sync,
S: Sync,
F: Sync,
S: Sync,
impl<S, F> UnwindSafe for StreamMap<S, F> where
F: UnwindSafe,
S: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
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,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,