1
0
mirror of https://github.com/actix/actix-website synced 2024-11-30 19:14:36 +01:00

Remove the "to_async" method documentation (#190)

This commit is contained in:
Omid Rad 2020-09-21 11:10:53 +02:00 committed by GitHub
parent 47473dc4bb
commit e7ca7fddd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,10 +70,8 @@ can be configured with a builder-like pattern. Following configuration methods a
registered for each route. registered for each route.
* [*Route::method()*][routemethod] registers a method guard. Any number of guards can be * [*Route::method()*][routemethod] registers a method guard. Any number of guards can be
registered for each route. registered for each route.
* [*Route::to()*][routeto] registers handler function for this route. Only one handler * [*Route::to()*][routeto] registers an async handler function for this route.
can be registered. Usually handler registration is the last config operation. Only one handler can be registered. Usually handler registration is the last config operation.
* [*Route::to_async()*][routetoasync] registers an async handler function for this route.
Only one handler can be registered. Handler registration is the last config operation.
# Route matching # Route matching
@ -415,7 +413,6 @@ with `App::service()` method.
[routeguard]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.guard [routeguard]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.guard
[routemethod]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.method [routemethod]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.method
[routeto]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.to [routeto]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.to
[routetoasync]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.to_async
[matchinfo]: https://docs.rs/actix-web/3/actix_web/struct.HttpRequest.html#method.match_info [matchinfo]: https://docs.rs/actix-web/3/actix_web/struct.HttpRequest.html#method.match_info
[pathget]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html#method.get [pathget]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html#method.get
[pathstruct]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html [pathstruct]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html