Struct futures_util::future::Lazy[][src]

#[must_use = "futures do nothing unless polled"]
pub struct Lazy<F> { /* fields omitted */ }

A future which, when polled, invokes a closure and yields its result.

This is created by the lazy function.

Trait Implementations

impl<F: Debug> Debug for Lazy<F>
[src]

Formats the value using the given formatter. Read more

impl<F> Unpin for Lazy<F>
[src]

impl<R, F> Future for Lazy<F> where
    F: FnOnce(&mut Context) -> R, 
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<F> Send for Lazy<F> where
    F: Send

impl<F> Sync for Lazy<F> where
    F: Sync