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]
impl<T: Debug> Debug for FutureOption<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Clone> Clone for FutureOption<T>[src]
impl<T: Clone> Clone for FutureOption<T>fn clone(&self) -> FutureOption<T>[src]
fn clone(&self) -> FutureOption<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<F, T, E> Future for FutureOption<F> where
F: Future<Item = T, Error = E>, [src]
impl<F, T, E> Future for FutureOption<F> where
F: Future<Item = T, Error = E>, type Item = Option<T>
A successful value
type Error = E
An error
fn poll(&mut self, cx: &mut Context) -> Poll<Option<T>, E>[src]
fn poll(&mut self, cx: &mut Context) -> Poll<Option<T>, E>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]
impl<T> From<Option<T>> for FutureOption<T>Auto Trait Implementations
impl<T> Send for FutureOption<T> where
T: Send,
impl<T> Send for FutureOption<T> where
T: Send, impl<T> Sync for FutureOption<T> where
T: Sync,
impl<T> Sync for FutureOption<T> where
T: Sync,