Skip to main content

TryReduceAsync

Struct TryReduceAsync 

Source
pub struct TryReduceAsync<B, F, R>
where B: BufferableBulk, F: FnMut<(B::Item, B::Item), Output: Future<Output = R>>, R: Try<Output = B::Item, Residual: Residual<Option<B::Item>>>,
{ /* private fields */ }

Trait Implementations§

Source§

impl<B, F, R> Future for TryReduceAsync<B, F, R>
where B: BufferableBulk, F: FnMut<(B::Item, B::Item), Output: Future<Output = R>>, R: Try<Output = B::Item, Residual: Residual<Option<B::Item>>>,

Source§

type Output = <<R as Try>::Residual as Residual<Option<<B as IntoIterator>::Item>>>::TryType

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations§

§

impl<B, F, R> Freeze for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: Freeze, F: Freeze, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: Freeze,

§

impl<B, F, R> RefUnwindSafe for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: RefUnwindSafe, F: RefUnwindSafe, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: RefUnwindSafe,

§

impl<B, F, R> Send for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: Send, F: Send, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: Send,

§

impl<B, F, R> Sync for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: Sync, F: Sync, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: Sync,

§

impl<B, F, R> Unpin for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: Unpin, F: Unpin, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: Unpin,

§

impl<B, F, R> UnsafeUnpin for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: UnsafeUnpin, F: UnsafeUnpin, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: UnsafeUnpin,

§

impl<B, F, R> UnwindSafe for TryReduceAsync<B, F, R>
where <R as Try>::Residual: Sized, <B as IntoIterator>::IntoIter: UnwindSafe, F: UnwindSafe, <<<B as Bulk>::MinLength as Length>::Intersect<<B as Bulk>::MaxLength> as BufferLengthSpec>::Buffer<MaybeDone<<F as FnOnce(<B as IntoIterator>::Item, <B as IntoIterator>::Item)>::Output>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<C, F> Curry<C> for F

Source§

type Output = Curried<(C,), (), F>

Source§

fn curry_once(self, arg: C) -> <F as Curry<C>>::Output

Source§

fn curry_mut(&mut self, arg: C) -> <&mut Self as Curry<C>>::Output

Source§

fn curry(&self, arg: C) -> <&Self as Curry<C>>::Output

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F> IntoFuture for F
where F: Future,

Source§

type Output = <F as Future>::Output

The output that the future will produce on completion.
Source§

type IntoFuture = F

Which kind of future are we turning this into?
Source§

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
Source§

impl<C, F> RCurry<C> for F

Source§

type Output = Curried<(), (C,), F>

Source§

fn rcurry_once(self, arg: C) -> <F as RCurry<C>>::Output

Source§

fn rcurry_mut(&mut self, arg: C) -> <&mut Self as RCurry<C>>::Output

Source§

fn rcurry(&self, arg: C) -> <&Self as RCurry<C>>::Output

Source§

impl<U> Same for U

Source§

fn same<T>(self) -> Result<T, U>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.