1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-30 23:30:19 +02:00

add NewService::from_err combinator

This commit is contained in:
Nikolay Kim
2018-09-17 18:10:23 -07:00
parent 20cff6fc0b
commit e0f4aac3b4
3 changed files with 115 additions and 5 deletions

View File

@@ -93,7 +93,10 @@ where
}
}
/// `MapErrNewService` new service combinator
/// NewService for the `map_err` combinator, changing the type of a new
/// service's error.
///
/// This is created by the `NewServiceExt::map_err` method.
pub struct MapErrNewService<A, F, E> {
a: A,
f: F,