The Future Trait

The Future trait is at the center of asynchronous programming in Rust. A Future is an asynchronous computation that can produce a value (although that value may be empty, e.g. ()). A simplified version of the future trait might look something like this:

Reference List

  1. https://rust-lang.github.io/async-book/02_execution/02_future.html