Struct tokio_stream::stream_ext::fold::FoldFuture
source · pub struct FoldFuture<St, B, F> {
stream: St,
acc: Option<B>,
f: F,
_pin: PhantomPinned,
}
Expand description
Future returned by the fold
method.
Fields§
§stream: St
§acc: Option<B>
§f: F
§_pin: PhantomPinned
Implementations§
source§impl<St, B, F> FoldFuture<St, B, F>
impl<St, B, F> FoldFuture<St, B, F>
Trait Implementations§
source§impl<St, B, F> Future for FoldFuture<St, B, F>
impl<St, B, F> Future for FoldFuture<St, B, F>
impl<'__pin, St, B, F> Unpin for FoldFuture<St, B, F>where
PinnedFieldsOf<__Origin<'__pin, St, B, F>>: Unpin,
Auto Trait Implementations§
impl<St, B, F> Freeze for FoldFuture<St, B, F>
impl<St, B, F> RefUnwindSafe for FoldFuture<St, B, F>
impl<St, B, F> Send for FoldFuture<St, B, F>
impl<St, B, F> Sync for FoldFuture<St, B, F>
impl<St, B, F> UnwindSafe for FoldFuture<St, B, F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more