Enum actix_optional_middleware::Group [−][src]
pub enum Group<D, R, Ser> where
D: Transform<Ser, ServiceRequest>,
R: Transform<Ser, ServiceRequest>, {
Dummy(Rc<D>),
Real(Rc<R>),
__(PhantomData<Ser>),
}
Expand description
Collection datatype that encapsulates dummy and real middlewares
The appropriate middleware is executed based on the variant chosen
Variants
Dummy(Rc<D>)
Tuple Fields of Dummy
0: Rc<D>
Real(Rc<R>)
Tuple Fields of Real
0: Rc<R>
__(PhantomData<Ser>)
Tuple Fields of __
0: PhantomData<Ser>
Trait Implementations
impl<D, R, S, DS, RS> Transform<S, ServiceRequest> for Group<D, R, S> where
S: Service<ServiceRequest, Response = ServiceResponse<BoxBody>, Error = Error> + 'static,
D: Transform<S, ServiceRequest, Transform = DS, InitError = (), Error = Error> + 'static,
R: Transform<S, ServiceRequest, Transform = RS, InitError = (), Error = Error> + 'static,
DS: Service<ServiceRequest, Error = Error, Response = ServiceResponse> + 'static,
RS: Service<ServiceRequest, Error = Error, Response = ServiceResponse> + 'static,
impl<D, R, S, DS, RS> Transform<S, ServiceRequest> for Group<D, R, S> where
S: Service<ServiceRequest, Response = ServiceResponse<BoxBody>, Error = Error> + 'static,
D: Transform<S, ServiceRequest, Transform = DS, InitError = (), Error = Error> + 'static,
R: Transform<S, ServiceRequest, Transform = RS, InitError = (), Error = Error> + 'static,
DS: Service<ServiceRequest, Error = Error, Response = ServiceResponse> + 'static,
RS: Service<ServiceRequest, Error = Error, Response = ServiceResponse> + 'static,
type Response = ServiceResponse<BoxBody>
type Response = ServiceResponse<BoxBody>
Responses produced by the service.
type Error = Error
type Error = Error
Errors produced by the service.
type Transform = GroupMiddleware<DS, RS>
type Transform = GroupMiddleware<DS, RS>
The TransformService
value created by this factory
The future response value.
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations
impl<D, R, Ser> !RefUnwindSafe for Group<D, R, Ser>
impl<D, R, Ser> UnwindSafe for Group<D, R, Ser> where
D: RefUnwindSafe,
R: RefUnwindSafe,
Ser: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more