Trait tower_web::routing::IntoResource[][src]

pub trait IntoResource<S, RequestBody> where
    S: Serializer,
    RequestBody: BufStream
{ type Destination: Clone + Send + Sync + 'static; type Resource: Resource<Destination = Self::Destination, RequestBody = RequestBody>; fn routes(&self) -> RouteSet<Self::Destination>;
fn into_resource(self, serializer: S) -> Self::Resource; }

Convert a value into a Resource

Associated Types

Token mapping a route to a resource method.

This will always be set to the same type as Self::Resource::Destination.

The Resource value being converted to

Required Methods

Returns the resource's set of routes.

Convert self into a Resource value.

Implementations on Foreign Types

impl<S: Serializer, B: BufStream, T0> IntoResource<S, B> for (T0,) where
    T0: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1> IntoResource<S, B> for (T0, T1) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2> IntoResource<S, B> for (T0, T1, T2) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3> IntoResource<S, B> for (T0, T1, T2, T3) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4> IntoResource<S, B> for (T0, T1, T2, T3, T4) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5, T6> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5, T6) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>,
    T6: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5, T6, T7> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5, T6, T7) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>,
    T6: IntoResource<S, B>,
    T7: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5, T6, T7, T8) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>,
    T6: IntoResource<S, B>,
    T7: IntoResource<S, B>,
    T8: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>,
    T6: IntoResource<S, B>,
    T7: IntoResource<S, B>,
    T8: IntoResource<S, B>,
    T9: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>,
    T6: IntoResource<S, B>,
    T7: IntoResource<S, B>,
    T8: IntoResource<S, B>,
    T9: IntoResource<S, B>,
    T10: IntoResource<S, B>, 
[src]

impl<S: Serializer, B: BufStream, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoResource<S, B> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) where
    T0: IntoResource<S, B>,
    T1: IntoResource<S, B>,
    T2: IntoResource<S, B>,
    T3: IntoResource<S, B>,
    T4: IntoResource<S, B>,
    T5: IntoResource<S, B>,
    T6: IntoResource<S, B>,
    T7: IntoResource<S, B>,
    T8: IntoResource<S, B>,
    T9: IntoResource<S, B>,
    T10: IntoResource<S, B>,
    T11: IntoResource<S, B>, 
[src]

Implementors