Struct futures_util::future::OrElse
source · [−]pub struct OrElse<Fut1, Fut2, F> { /* private fields */ }
Expand description
Future for the or_else
method.
Trait Implementations
impl<Fut1, Fut2, F> FusedFuture for OrElse<Fut1, Fut2, F> where
TryFlattenErr<MapErr<Fut1, F>, Fut2>: FusedFuture,
impl<Fut1, Fut2, F> FusedFuture for OrElse<Fut1, Fut2, F> where
TryFlattenErr<MapErr<Fut1, F>, Fut2>: FusedFuture,
Returns true
if the underlying future should no longer be polled.
The type of value produced on completion.
Auto Trait Implementations
impl<Fut1, Fut2, F> RefUnwindSafe for OrElse<Fut1, Fut2, F> where
F: RefUnwindSafe,
Fut1: RefUnwindSafe,
Fut2: RefUnwindSafe,
impl<Fut1, Fut2, F> UnwindSafe for OrElse<Fut1, Fut2, F> where
F: UnwindSafe,
Fut1: UnwindSafe,
Fut2: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.