mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 01:11:07 +01:00
IntoService for fn_cfg_factory
This commit is contained in:
parent
49867b5e9d
commit
70ead175b9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user