Struct tower_web::middleware::cors::CorsService[][src]

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

Decorates a service, providing an implementation of the CORS specification.

Trait Implementations

impl<S: Debug> Debug for CorsService<S>
[src]

Formats the value using the given formatter. Read more

impl<S> Service for CorsService<S> where
    S: HttpService
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Returns Ready when the service is able to process requests. Read more

Process the request and return the response asynchronously. Read more

A future yielding the service when it is ready to accept a request.

Auto Trait Implementations

impl<S> Send for CorsService<S> where
    S: Send

impl<S> Sync for CorsService<S> where
    S: Sync