Skip to main content

Transform

Trait Transform 

Source
pub trait Transform<S, Req> {
    type Transform: Service<Req>;

    // Required method
    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.

Required Associated Types§

Required Methods§

Source

fn new_transform(self, service: S) -> Self::Transform

Creates and returns a new Transform component.

Implementations on Foreign Types§

Source§

impl<S, Req> Transform<S, Req> for ()
where S: Service<Req>,

Dummy impl for kick start NestTransform type in ClientBuilder type

Source§

type Transform = S

Source§

fn new_transform(self, service: S) -> Self::Transform

Implementors§

Source§

impl<S> Transform<S, ConnectRequest> for Redirect
where S: Service<ConnectRequest, Response = ConnectResponse, Error = SendRequestError> + 'static,

Source§

type Transform = RedirectService<S>