Struct futures_lite::stream::AnyFuture
source · pub struct AnyFuture<'a, S: ?Sized, P> { /* private fields */ }
Expand description
Future for the StreamExt::any()
method.
Trait Implementations§
source§impl<S, P> Future for AnyFuture<'_, S, P>where
S: Stream + Unpin + ?Sized,
P: FnMut(S::Item) -> bool,
impl<S, P> Future for AnyFuture<'_, S, P>where S: Stream + Unpin + ?Sized, P: FnMut(S::Item) -> bool,
impl<S: Unpin + ?Sized, P> Unpin for AnyFuture<'_, S, P>
Auto Trait Implementations§
impl<'a, S: ?Sized, P> RefUnwindSafe for AnyFuture<'a, S, P>where P: RefUnwindSafe, S: RefUnwindSafe,
impl<'a, S: ?Sized, P> Send for AnyFuture<'a, S, P>where P: Send, S: Send,
impl<'a, S: ?Sized, P> Sync for AnyFuture<'a, S, P>where P: Sync, S: Sync,
impl<'a, S, P> !UnwindSafe for AnyFuture<'a, S, P>
Blanket Implementations§
source§impl<F> FutureExt for Fwhere
F: Future + ?Sized,
impl<F> FutureExt for Fwhere F: Future + ?Sized,
source§fn or<F>(self, other: F) -> Or<Self, F> ⓘwhere
Self: Sized,
F: Future<Output = Self::Output>,
fn or<F>(self, other: F) -> Or<Self, F> ⓘwhere Self: Sized, F: Future<Output = Self::Output>,
source§fn race<F>(self, other: F) -> Race<Self, F> ⓘwhere
Self: Sized,
F: Future<Output = Self::Output>,
fn race<F>(self, other: F) -> Race<Self, F> ⓘwhere Self: Sized, F: Future<Output = Self::Output>,
source§fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere Self: Sized + UnwindSafe,
Catches panics while polling the future. 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