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.
Trait Implementations
impl<T: Debug, E: Debug> Debug for FutureResult<T, E>[src]
impl<T: Debug, E: Debug> Debug for FutureResult<T, E>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, E: Clone> Clone for FutureResult<T, E>[src]
impl<T: Clone, E: Clone> Clone for FutureResult<T, E>fn clone(&self) -> FutureResult<T, E>[src]
fn clone(&self) -> FutureResult<T, E>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<T, E> Future for FutureResult<T, E>[src]
impl<T, E> Future for FutureResult<T, E>type Item = T
A successful value
type Error = E
An error
fn poll(&mut self, _: &mut Context) -> Poll<T, E>[src]
fn poll(&mut self, _: &mut Context) -> Poll<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, E> From<Result<T, E>> for FutureResult<T, E>[src]
impl<T, E> From<Result<T, E>> for FutureResult<T, E>Auto Trait Implementations
impl<T, E> Send for FutureResult<T, E> where
E: Send,
T: Send,
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,
impl<T, E> Sync for FutureResult<T, E> where
E: Sync,
T: Sync,