Struct futures_core::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: Debug, E: Debug> Debug for FutureResult<T, E>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone, E: Clone> Clone for FutureResult<T, E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, E> Future for FutureResult<T, 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, E> From<Result<T, E>> for FutureResult<T, E>
[src]

Performs the conversion.

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