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
Ok(T)
Err(E)
Done(Sealed)
Trait Implementations
Auto Trait Implementations
impl<T, E> RefUnwindSafe for Ready<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> UnwindSafe for Ready<T, E> where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future)Creates a future from a value.