1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

add extra methods to pipeline

This commit is contained in:
Nikolay Kim
2019-11-29 13:51:00 +06:00
parent 5e5ae2ddec
commit bec4efc699
2 changed files with 75 additions and 2 deletions

View File

@ -23,8 +23,7 @@ where
impl<S, T> StreamDispatcher<S, T>
where
S: Stream,
T: Service<Request = S::Item, Response = ()>,
T::Future: 'static,
T: Service<Request = S::Item, Response = ()> + 'static,
{
pub fn new<F>(stream: S, service: F) -> Self
where