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

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Erased for T