pub trait ModifyService<Ctx, Request, S> {
    type Response;
    type Error;
    type Service: Service<Request, Response = Self::Response, Error = Self::Error>;
    type ModifyError;
    type Future: Future<Item = Self::Service, Error = Self::ModifyError>;

    fn modify_service(&self, input: S, ctx: Ctx) -> Self::Future;
}
Expand description

A trait representing the modification of Service to another one.

Required Associated Types§

The response type returned by the modified Service.

The error type returned by the modified Service.

The type of modified service.

The error that occurs when modifying services.

The type of Future returned from modify_service.

Required Methods§

Modifies a service using the specified context.

Implementations on Foreign Types§

Implementors§