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]
impl<S: Debug> Debug for CorsService<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S> Service for CorsService<S> where
S: HttpService, [src]
impl<S> Service for CorsService<S> where
S: HttpService, type Request = Request<S::RequestBody>
Requests handled by the service.
type Response = Response<Option<S::ResponseBody>>
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = CorsFuture<S::Future>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, request: Self::Request) -> Self::Future[src]
fn call(&mut self, request: Self::Request) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>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> Send for CorsService<S> where
S: Send, impl<S> Sync for CorsService<S> where
S: Sync,
impl<S> Sync for CorsService<S> where
S: Sync,