mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 11:01:14 +00:00
docs: mention result is wrapped in Data in data_factory() docs (#3251)
This commit is contained in:
parent
2915bb7d90
commit
d453b15ddd
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,8 @@ where
|
||||||
///
|
///
|
||||||
/// Data items are constructed during application initialization, before the server starts
|
/// Data items are constructed during application initialization, before the server starts
|
||||||
/// accepting requests.
|
/// accepting requests.
|
||||||
|
///
|
||||||
|
/// The returned data value `D` is wrapped as [`Data<D>`].
|
||||||
pub fn data_factory<F, Out, D, E>(mut self, data: F) -> Self
|
pub fn data_factory<F, Out, D, E>(mut self, data: F) -> Self
|
||||||
where
|
where
|
||||||
F: Fn() -> Out + 'static,
|
F: Fn() -> Out + 'static,
|
||||||
|
|
Loading…
Reference in a new issue