Struct actix::fut::stream::Fold [−][src]
Stream for the fold
method.
Trait Implementations
impl<S, A, F, Fut> ActorFuture<A> for Fold<S, F, Fut, Fut::Output> where
S: ActorStream<A>,
A: Actor,
F: FnMut(Fut::Output, S::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
[src]
S: ActorStream<A>,
A: Actor,
F: FnMut(Fut::Output, S::Item, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
type Output = Fut::Output
The type of value that this future will resolved with if it is successful. Read more
fn poll(
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
impl<S: Debug, F: Debug, Fut: Debug, T: Debug> Debug for Fold<S, F, Fut, T>
[src]
impl<'__pin, S, F, Fut, T> Unpin for Fold<S, F, Fut, T> where
__Origin<'__pin, S, F, Fut, T>: Unpin,
[src]
__Origin<'__pin, S, F, Fut, T>: Unpin,
Auto Trait Implementations
impl<S, F, Fut, T> RefUnwindSafe for Fold<S, F, Fut, T> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, F, Fut, T> Send for Fold<S, F, Fut, T> where
F: Send,
Fut: Send,
S: Send,
T: Send,
F: Send,
Fut: Send,
S: Send,
T: Send,
impl<S, F, Fut, T> Sync for Fold<S, F, Fut, T> where
F: Sync,
Fut: Sync,
S: Sync,
T: Sync,
F: Sync,
Fut: Sync,
S: Sync,
T: Sync,
impl<S, F, Fut, T> UnwindSafe for Fold<S, F, Fut, T> where
F: UnwindSafe,
Fut: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
F: UnwindSafe,
Fut: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<F, A> ActorFutureExt<A> for F where
F: ActorFuture<A>,
A: Actor,
[src]
F: ActorFuture<A>,
A: Actor,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
Self: Sized,
fn then<F, Fut>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<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>,