[][src]Struct swagger::composites::CompositeService

pub struct CompositeService<U, V, W>(_)
where
    V: NotFound<V> + 'static,
    W: 'static
;

Wraps a vector of pairs, each consisting of a base path as a &'static str and a Service instance.

Trait Implementations

impl<U, V, W> Debug for CompositeService<U, V, W> where
    V: NotFound<V> + 'static,
    W: 'static, 
[src]

impl<U, V, W> Deref for CompositeService<U, V, W> where
    V: NotFound<V> + 'static,
    W: 'static, 
[src]

type Target = Vec<(&'static str, Box<dyn Service<ReqBody = U, ResBody = V, Error = W, Future = Box<dyn Future<Item = Response<V>, Error = W>>>>)>

The resulting type after dereferencing.

impl<U, V, W> DerefMut for CompositeService<U, V, W> where
    V: NotFound<V> + 'static,
    W: 'static, 
[src]

impl<U, V, W> Service for CompositeService<U, V, W> where
    U: Payload,
    V: NotFound<V> + 'static + Payload,
    W: 'static + Error + Send + Sync
[src]

type ReqBody = U

The Payload body of the http::Request.

type ResBody = V

The Payload body of the http::Response.

type Error = W

The error type that can occur within this Service. Read more

type Future = Box<dyn Future<Item = Response<V>, Error = W>>

The Future returned by this Service.

Auto Trait Implementations

impl<U, V, W> !RefUnwindSafe for CompositeService<U, V, W>

impl<U, V, W> !Send for CompositeService<U, V, W>

impl<U, V, W> !Sync for CompositeService<U, V, W>

impl<U, V, W> Unpin for CompositeService<U, V, W>

impl<U, V, W> !UnwindSafe for CompositeService<U, V, W>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.