[][src]Enum actix_web_condition_middleware::ConditionMiddleware

pub enum ConditionMiddleware<E, D> {
    Enable(E),
    Disable(D),
}

Variants

Enable(E)Disable(D)

Trait Implementations

impl<E, D> Service for ConditionMiddleware<E, D> where
    E: Service,
    D: Service<Request = E::Request, Response = E::Response, Error = E::Error>, 
[src]

type Request = E::Request

Requests handled by the service.

type Response = E::Response

Responses given by the service.

type Error = E::Error

Errors produced by the service.

type Future = Either<E::Future, D::Future>

The future response value.

Auto Trait Implementations

impl<E, D> Sync for ConditionMiddleware<E, D> where
    D: Sync,
    E: Sync

impl<E, D> Send for ConditionMiddleware<E, D> where
    D: Send,
    E: Send

impl<E, D> Unpin for ConditionMiddleware<E, D> where
    D: Unpin,
    E: Unpin

impl<E, D> UnwindSafe for ConditionMiddleware<E, D> where
    D: UnwindSafe,
    E: UnwindSafe

impl<E, D> RefUnwindSafe for ConditionMiddleware<E, D> where
    D: RefUnwindSafe,
    E: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoService<T> for T where
    T: Service
[src]

impl<T> ServiceExt for T where
    T: Service + ?Sized
[src]