[−][src]Struct futures::future::Lazy
A future which defers creation of the actual future until a callback is scheduled.
This is created by the lazy
function.
Trait Implementations
impl<F, R> Future for Lazy<F, R> where
F: FnOnce() -> R,
R: IntoFuture,
[src][+]
F: FnOnce() -> R,
R: IntoFuture,
impl<F: Debug, R: Debug + IntoFuture> Debug for Lazy<F, R> where
R::Future: Debug,
[src][+]
R::Future: Debug,
Auto Trait Implementations
impl<F, R> Send for Lazy<F, R> where
F: Send,
<R as IntoFuture>::Future: Send,
F: Send,
<R as IntoFuture>::Future: Send,
impl<F, R> Sync for Lazy<F, R> where
F: Sync,
<R as IntoFuture>::Future: Sync,
F: Sync,
<R as IntoFuture>::Future: Sync,
Blanket Implementations
impl<F> IntoFuture for F where
F: Future,
[src][−]
F: Future,
type Future = F
The future that this type can be converted into.
type Item = <F as Future>::Item
The item that the future may resolve with.
type Error = <F as Future>::Error
The error that the future may resolve with.
fn into_future(Self) -> F
[src][−]
impl<T, U> TryFrom for T where
T: From<U>,
[src][−]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
impl<T> From for T
[src][−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][−]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
impl<T, U> Into for T where
U: From<T>,
[src][−]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src][−]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][−]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
impl<T> Any for T where
T: 'static + ?Sized,
[src][−]
T: 'static + ?Sized,