pub enum Ready<T, E> {
    Ok(T),
    Err(E),
    Done(Sealed),
}Expand description
A future representing a value that is immediately ready.
Created by the result function.
Variants§
Trait Implementations§
impl<T, E> Unpin for Ready<T, E>
Auto Trait Implementations§
impl<T, E> RefUnwindSafe for Ready<T, E>where
    E: RefUnwindSafe,
    T: RefUnwindSafe,
impl<T, E> Send for Ready<T, E>
impl<T, E> Sync for Ready<T, E>
impl<T, E> UnwindSafe for Ready<T, E>where
    E: UnwindSafe,
    T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F> IntoFuture for Fwhere
    F: Future,
 
impl<F> IntoFuture for Fwhere
    F: Future,
§type IntoFuture = F
 
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
 
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more