[−][src]Struct swagger::composites::CompositeService
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]
V: NotFound<V> + 'static,
W: 'static,
impl<U, V, W> Deref for CompositeService<U, V, W> where
V: NotFound<V> + 'static,
W: 'static,
[src]
V: NotFound<V> + 'static,
W: 'static,
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.
fn deref(&self) -> &Self::Target
[src]
impl<U, V, W> DerefMut for CompositeService<U, V, W> where
V: NotFound<V> + 'static,
W: 'static,
[src]
V: NotFound<V> + 'static,
W: 'static,
impl<U, V, W> Service for CompositeService<U, V, W> where
U: Payload,
V: NotFound<V> + 'static + Payload,
W: 'static + Error + Send + Sync,
[src]
U: Payload,
V: NotFound<V> + 'static + Payload,
W: 'static + Error + Send + Sync,
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
.
fn call(&mut self, req: Request<Self::ReqBody>) -> Self::Future
[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::Error>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,