Struct actix::fut::stream::Map [−][src]
Stream for the map
method.
Trait Implementations
impl<S, A, F, U> ActorStream<A> for Map<S, F> where
S: ActorStream<A>,
A: Actor,
F: FnMut(S::Item, &mut A, &mut A::Context) -> U,
[src]
S: ActorStream<A>,
A: Actor,
F: FnMut(S::Item, &mut A, &mut A::Context) -> U,
type Item = U
The type of item this stream will yield on success.
fn poll_next(
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Option<Self::Item>>
impl<S: Debug, F: Debug> Debug for Map<S, F>
[src]
impl<'__pin, S, F> Unpin for Map<S, F> where
__Origin<'__pin, S, F>: Unpin,
[src]
__Origin<'__pin, S, F>: Unpin,
Auto Trait Implementations
impl<S, F> RefUnwindSafe for Map<S, F> where
F: RefUnwindSafe,
S: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, F> Send for Map<S, F> where
F: Send,
S: Send,
F: Send,
S: Send,
impl<S, F> Sync for Map<S, F> where
F: Sync,
S: Sync,
F: Sync,
S: Sync,
impl<S, F> UnwindSafe for Map<S, F> where
F: UnwindSafe,
S: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<A, S> ActorStreamExt<A> for S where
A: Actor,
S: ActorStream<A>,
[src]
A: Actor,
S: ActorStream<A>,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item, &mut A, &mut A::Context) -> U,
Self: Sized,
[src]
F: FnMut(Self::Item, &mut A, &mut A::Context) -> U,
Self: Sized,
fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut> where
F: FnMut(Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
[src]
F: FnMut(Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
fn fold<F, Fut>(
self,
init: Fut::Output,
f: F
) -> Fold<Self, F, Fut, Fut::Output> where
F: FnMut(Fut::Output, Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
[src]
self,
init: Fut::Output,
f: F
) -> Fold<Self, F, Fut, Fut::Output> where
F: FnMut(Fut::Output, Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
fn take_while<F, Fut>(self, f: F) -> TakeWhile<Self, Self::Item, F, Fut> where
F: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
Self: Sized,
[src]
F: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
Self: Sized,
fn skip_while<F, Fut>(self, f: F) -> SkipWhile<Self, Self::Item, F, Fut> where
F: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
Self: Sized,
[src]
F: FnMut(&Self::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A, Output = bool>,
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<Self> where
Self: Sized,
[src]
Self: Sized,
fn collect<C>(self) -> Collect<Self, C> where
C: Default + Extend<Self::Item>,
Self: Sized,
[src]
C: Default + Extend<Self::Item>,
Self: Sized,
fn finish(self) -> Finish<Self> where
Self: Sized,
[src]
Self: Sized,
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,
pub 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.
pub 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>,