mirror of
https://github.com/fafhrd91/actix-net
synced 2025-03-20 19:35:17 +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>
|
pub fn fn_cfg_factory<F, C, R, S, E, Req>(f: F) -> FnNewServiceConfig<F, C, R, S, E, Req>
|
||||||
where
|
where
|
||||||
F: Fn(&C) -> R,
|
F: Fn(&C) -> R,
|
||||||
R: IntoFuture<Item = S, Error = E>,
|
R: IntoFuture<Error = E>,
|
||||||
|
R::Item: IntoService<S, Req>,
|
||||||
S: Service<Req>,
|
S: Service<Req>,
|
||||||
{
|
{
|
||||||
FnNewServiceConfig::new(f)
|
FnNewServiceConfig::new(f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user