pub struct Ready<T>(/* private fields */);
A future that is immediately ready with a value.
This struct is created by ready(). See its documentation for more.
struct
ready()
Consumes the Ready, returning the wrapped value.
Ready
Will panic if this Ready was already polled to completion.
use std::future; let a = future::ready(1); assert_eq!(a.into_inner(), 1);