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> Clone for FutureResult<T, E> where
    E: Clone,
    T: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T, E> From<Result<T, E>> for FutureResult<T, E>
[src]

[src]

Performs the conversion.

impl<T, E> Future for FutureResult<T, 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, E> Debug for FutureResult<T, E> where
    E: Debug,
    T: Debug
[src]

[src]

Formats the value using the given formatter. 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