Struct futures::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> From<Option<T>> for FutureOption<T>
[src]

[src]

Performs the conversion.

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

A successful value

An error

[src]

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> Debug for FutureOption<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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