[][src]Struct requiem_cors::CorsMiddleware

pub struct CorsMiddleware<S> { /* fields omitted */ }

Middleware for Cross-origin resource sharing support

The Cors struct contains the settings for CORS requests to be validated and for responses to be generated.

Trait Implementations

impl<S: Clone> Clone for CorsMiddleware<S>[src]

impl<S, B> Service for CorsMiddleware<S> where
    S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
    S::Future: 'static,
    B: 'static, 

type Request = ServiceRequest

Requests handled by the service.

type Response = ServiceResponse<B>

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Either<Ready<Result<Self::Response, Error>>, LocalBoxFuture<'static, Result<Self::Response, Error>>>

The future response value.

Auto Trait Implementations

impl<S> !RefUnwindSafe for CorsMiddleware<S>

impl<S> !Send for CorsMiddleware<S>

impl<S> !Sync for CorsMiddleware<S>

impl<S> Unpin for CorsMiddleware<S> where
    S: Unpin

impl<S> UnwindSafe for CorsMiddleware<S> where
    S: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> IntoService<T> for T where
    T: Service

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,