1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

update migration

This commit is contained in:
Nikolay Kim
2019-04-10 20:47:28 -07:00
parent e55be4dba6
commit 7801fcb993
3 changed files with 120 additions and 2 deletions

View File

@ -32,8 +32,9 @@ pub(crate) trait DataFactoryResult {
/// an application instance. Http server constructs an application
/// instance for each thread, thus application data must be constructed
/// multiple times. If you want to share data between different
/// threads, a shared object should be used, e.g. `Arc`. Application
/// data does not need to be `Send` or `Sync`.
/// threads, a shareable object should be used, e.g. `Send + Sync`. Application
/// data does not need to be `Send` or `Sync`. Internally `Data` instance
/// uses `Arc`.
///
/// If route data is not set for a handler, using `Data<T>` extractor would
/// cause *Internal Server Error* response.