Rocket/examples/form_validation/src
Sergio Benitez f7cd455558 Make 'NamedFile' async. Fix 'Handler' trait.
Previously, 'NamedFile::open()' called a synchronous I/O method. This
commit changes it to instead use tokio's 'File' for async I/O.

To allow this to change, the 'Handler' trait was fixed to enforce that
the lifetime of '&self', the reference to the handler, outlives the
incoming request. As a result, futures returned from a handler can hold
a reference to 'self'.
2020-07-11 09:24:30 -07:00
..
main.rs Make 'NamedFile' async. Fix 'Handler' trait. 2020-07-11 09:24:30 -07:00
tests.rs Make 'Fairing::on_attach()' async. 2020-07-11 09:24:29 -07:00