[−][src]Struct actix::fut::StreamThen
A stream combinator which chains a computation onto each item produced by a stream.
This structure is produced by the ActorStream::then
method.
Trait Implementations
impl<S, F: 'static, U> ActorStream for StreamThen<S, F, U> where
S: ActorStream + Unpin,
F: FnMut(S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = S::Actor>,
U::Future: Unpin,
[src]
S: ActorStream + Unpin,
F: FnMut(S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> U,
U: IntoActorFuture<Actor = S::Actor>,
U::Future: Unpin,
type Item = U::Output
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 S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context
) -> Poll<Option<U::Output>>
[src]
self: Pin<&mut Self>,
act: &mut S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context
) -> Poll<Option<U::Output>>
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 + 'static, U: Debug> Debug for StreamThen<S, F, U> where
U: IntoActorFuture,
S: ActorStream,
U::Future: Debug,
[src]
U: IntoActorFuture,
S: ActorStream,
U::Future: Debug,
impl<S, F: 'static, U> PinnedDrop for StreamThen<S, F, U> where
U: IntoActorFuture,
S: ActorStream,
[src]
U: IntoActorFuture,
S: ActorStream,
impl<'pin, S, F: 'static, U> Unpin for StreamThen<S, F, U> where
U: IntoActorFuture,
S: ActorStream,
__StreamThen<'pin, S, F, U>: Unpin,
[src]
U: IntoActorFuture,
S: ActorStream,
__StreamThen<'pin, S, F, U>: Unpin,
Auto Trait Implementations
impl<S, F, U> RefUnwindSafe for StreamThen<S, F, U> where
F: RefUnwindSafe,
S: RefUnwindSafe,
<U as IntoActorFuture>::Future: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
<U as IntoActorFuture>::Future: RefUnwindSafe,
impl<S, F, U> Send for StreamThen<S, F, U> where
F: Send,
S: Send,
<U as IntoActorFuture>::Future: Send,
F: Send,
S: Send,
<U as IntoActorFuture>::Future: Send,
impl<S, F, U> Sync for StreamThen<S, F, U> where
F: Sync,
S: Sync,
<U as IntoActorFuture>::Future: Sync,
F: Sync,
S: Sync,
<U as IntoActorFuture>::Future: Sync,
impl<S, F, U> UnwindSafe for StreamThen<S, F, U> where
F: UnwindSafe,
S: UnwindSafe,
<U as IntoActorFuture>::Future: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
<U as IntoActorFuture>::Future: 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>,