Struct tower_web::routing::RoutedService[][src]

pub struct RoutedService<T, U> where
    T: Resource
{ /* fields omitted */ }

Web service

Trait Implementations

impl<T, U> Clone for RoutedService<T, U> where
    T: Resource,
    U: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, U> Debug for RoutedService<T, U> where
    T: Resource + Debug,
    T::Destination: Debug,
    U: Debug
[src]

Formats the value using the given formatter. Read more

impl<T, U> Service for RoutedService<T, U> where
    T: Resource,
    U: Catch
[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<T, U> Send for RoutedService<T, U> where
    T: Send,
    U: Send,
    <T as Resource>::Destination: Send + Sync

impl<T, U> Sync for RoutedService<T, U> where
    T: Sync,
    U: Sync,
    <T as Resource>::Destination: Send + Sync