mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 16:52:58 +01:00
updated as per comments
This commit is contained in:
parent
33cd51aabf
commit
5cbc29306a
@ -53,9 +53,6 @@ pub use self::then::{Then, ThenNewService};
|
||||
pub use self::transform::{apply_transform, IntoTransform, Transform};
|
||||
|
||||
/// An asynchronous function from `Request` to a `Response`.
|
||||
/// The entire request/response lifecycle can be represented as a pipeline of
|
||||
/// Services. The linkage between Services is represented in terms of ownership,
|
||||
/// where the preceeding Service owns that which follows it.
|
||||
pub trait Service {
|
||||
/// Requests handled by the service.
|
||||
type Request;
|
||||
|
@ -40,9 +40,7 @@ pub trait Transform<S> {
|
||||
/// The future response value.
|
||||
type Future: Future<Item = Self::Transform, Error = Self::InitError>;
|
||||
|
||||
/// Creates and returns a new Service component, asynchronously. `new_transform`
|
||||
/// is called only once during the lifetime of a server -- as the server
|
||||
/// initializes.
|
||||
/// Creates and returns a new Service component, asynchronously
|
||||
fn new_transform(&self, service: S) -> Self::Future;
|
||||
|
||||
/// Map this service's factory error to a different error,
|
||||
|
Loading…
Reference in New Issue
Block a user