Rocket/examples/form_kitchen_sink
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
..
src Make 'NamedFile' async. Fix 'Handler' trait. 2020-07-11 09:24:30 -07:00
static Allow form field renaming via #[form(field = "name")] attribute. 2017-04-03 19:06:30 -07:00
Cargo.toml Make 'NamedFile' async. Fix 'Handler' trait. 2020-07-11 09:24:30 -07:00