Struct futures_util::future::Lazy
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Lazy<R: IntoFuture, F> { /* fields omitted */ }
A future which defers creation of the actual future until the future
is poll
ed.
This is created by the lazy
function.
Trait Implementations
impl<R: Debug + IntoFuture, F: Debug> Debug for Lazy<R, F> where
R::Future: Debug,
[src]
R::Future: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<R, F> Future for Lazy<R, F> where
F: FnOnce() -> R,
R: IntoFuture,
[src]
F: FnOnce() -> R,
R: IntoFuture,