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