[][src]Struct tower::util::FutureService

pub struct FutureService<F, S> { /* fields omitted */ }
This is supported on crate feature util only.

A type that implements Service for a Future that produces a Service.

See future_service for more details.

Trait Implementations

impl<F: Clone, S: Clone> Clone for FutureService<F, S>[src]

impl<F, S> Debug for FutureService<F, S> where
    S: Debug
[src]

impl<F, S, R, E> Service<R> for FutureService<F, S> where
    F: Future<Output = Result<S, E>> + Unpin,
    S: Service<R, Error = E>, 
[src]

type Response = S::Response

Responses given by the service.

type Error = E

Errors produced by the service.

type Future = S::Future

The future response value.

Auto Trait Implementations

impl<F, S> RefUnwindSafe for FutureService<F, S> where
    F: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<F, S> Send for FutureService<F, S> where
    F: Send,
    S: Send
[src]

impl<F, S> Sync for FutureService<F, S> where
    F: Sync,
    S: Sync
[src]

impl<F, S> Unpin for FutureService<F, S> where
    F: Unpin,
    S: Unpin
[src]

impl<F, S> UnwindSafe for FutureService<F, S> where
    F: UnwindSafe,
    S: UnwindSafe
[src]

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> Instrument for T[src]

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

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,