1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-28 07:47:49 +02:00

custom future for SendError service

This commit is contained in:
Nikolay Kim
2019-04-11 15:12:23 -07:00
parent d86567fbdc
commit 94d7a7f873
3 changed files with 39 additions and 109 deletions

View File

@@ -88,7 +88,7 @@ pub struct FramedAppFactory<T, S> {
services: Rc<Vec<(String, BoxedHttpNewService<FramedRequest<T, S>>)>>,
}
impl<T, S> NewService for FramedAppFactory<T, S>
impl<T, S, C> NewService<C> for FramedAppFactory<T, S>
where
T: AsyncRead + AsyncWrite + 'static,
S: 'static,
@@ -100,7 +100,7 @@ where
type Service = CloneableService<FramedAppService<T, S>>;
type Future = CreateService<T, S>;
fn new_service(&self, _: &()) -> Self::Future {
fn new_service(&self, _: &C) -> Self::Future {
CreateService {
fut: self
.services