Trait awc::middleware::Transform [−][src]
pub trait Transform<S, Req> {
type Transform: Service<Req>;
fn new_transform(self, service: S) -> Self::Transform;
}
Expand description
Trait for transform a type to another one. Both the input and output type should impl actix_service::Service trait.
Associated Types
Required methods
fn new_transform(self, service: S) -> Self::Transform
fn new_transform(self, service: S) -> Self::Transform
Creates and returns a new Transform component.