Non-leaf futures – Futures in RustNon-leaf futures – Futures in Rust
Leaf futures Runtimes create leaf futures, which represent a resource such as a socket. This is an example of a leaf future:let mut stream = tokio::net::TcpStream::connect(“127.0.0.1:3000”); Operations on these resources,