pub fn ready<T>(t: T) -> Ready<T>ⓘNotable traits for Ready<T>impl<T> Future for Ready<T> type Output = T;
Creates a future that is immediately ready with a value.
#![feature(future_readiness_fns)] use core::future; let a = future::ready(1); assert_eq!(a.await, 1);
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/future/fn.ready.html