docs: mention result is wrapped in Data in data_factory() docs

This commit is contained in:
Vojtech Kral 2024-01-18 13:13:32 +01:00
parent 2915bb7d90
commit e84864c2c6
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ where
///
/// Data items are constructed during application initialization, before the server starts
/// 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
where
F: Fn() -> Out + 'static,