Struct futures::future::FutureResult [] [src]

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

A future representing a value that is immediately ready.

Created by the result, ok or err functions.

Trait Implementations

impl<T, E> From<Result<T, E>> for FutureResult<T, E>


Performs the conversion.

impl<T, E> Future for FutureResult<T, E>

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, E> Debug for FutureResult<T, E> where
    E: Debug,
    T: Debug


Formats the value using the given formatter. Read more

impl<T, E> Clone for FutureResult<T, E> where
    E: Clone,
    T: Clone


Returns a copy of the value. Read more


Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T, E> Send for FutureResult<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for FutureResult<T, E> where
    E: Sync,
    T: Sync