Struct futures_core::future::FutureOption[][src]

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

A future representing a value which may or may not be present.

Created by the IntoFuture implementation for std::option::Option.

Trait Implementations

impl<T: Debug> Debug for FutureOption<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for FutureOption<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F, T, E> Future for FutureOption<F> where
    F: Future<Item = T, Error = E>, 
[src]

A successful value

An error

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

impl<T> From<Option<T>> for FutureOption<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for FutureOption<T> where
    T: Send

impl<T> Sync for FutureOption<T> where
    T: Sync