1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 22:51:07 +01:00

IntoService for fn_cfg_factory

This commit is contained in:
Nikolay Kim 2019-03-08 20:51:50 -08:00
parent 49867b5e9d
commit 70ead175b9

View File

@ -28,7 +28,8 @@ where
pub fn fn_cfg_factory<F, C, R, S, E, Req>(f: F) -> FnNewServiceConfig<F, C, R, S, E, Req>
where
F: Fn(&C) -> R,
R: IntoFuture<Item = S, Error = E>,
R: IntoFuture<Error = E>,
R::Item: IntoService<S, Req>,
S: Service<Req>,
{
FnNewServiceConfig::new(f)