Struct futures_lite::future::Or [−][src]
pub struct Or<F1, F2> { /* fields omitted */ }
Expand description
Future for the or()
function and the FutureExt::or()
method.
Trait Implementations
Auto Trait Implementations
impl<F1, F2> RefUnwindSafe for Or<F1, F2> where
F1: RefUnwindSafe,
F2: RefUnwindSafe,
impl<F1, F2> UnwindSafe for Or<F1, F2> where
F1: UnwindSafe,
F2: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
A convenience for calling Future::poll()
on !
Unpin
types.
Returns the result of self
or other
future, preferring self
if both are ready. Read more
Returns the result of self
or other
future, with no preference if both are ready. Read more
fn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<F>impl<F: Future + UnwindSafe> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<F>impl<F: Future + UnwindSafe> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
Notable traits for CatchUnwind<F>
impl<F: Future + UnwindSafe> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
Catches panics while polling the future. Read more
Boxes the future and changes its type to dyn Future + Send + 'a
. 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.