Struct futures_util::future::OptionFuture
source · [−]pub struct OptionFuture<F> { /* private fields */ }
Expand description
Trait Implementations
fn clone(&self) -> OptionFuture<F>ⓘNotable traits for OptionFuture<F>impl<F: Future> Future for OptionFuture<F> type Output = Option<F::Output>;
fn clone(&self) -> OptionFuture<F>ⓘNotable traits for OptionFuture<F>impl<F: Future> Future for OptionFuture<F> type Output = Option<F::Output>;
Notable traits for OptionFuture<F>
impl<F: Future> Future for OptionFuture<F> type Output = Option<F::Output>;
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
Returns true
if the underlying future should no longer be polled.
Auto Trait Implementations
impl<F> RefUnwindSafe for OptionFuture<F> where
F: RefUnwindSafe,
impl<F> Send for OptionFuture<F> where
F: Send,
impl<F> Sync for OptionFuture<F> where
F: Sync,
impl<F> UnwindSafe for OptionFuture<F> where
F: 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.