Struct tower::spawn_ready::MakeSpawnReady[][src]

pub struct MakeSpawnReady<S> { /* fields omitted */ }
This is supported on crate feature spawn-ready only.

Builds SpawnReady instances with the result of an inner Service.


impl<S> MakeSpawnReady<S>[src]

pub fn new(service: S) -> Self[src]

Creates a new MakeSpawnReady wrapping service.

Trait Implementations

impl<S: Clone> Clone for MakeSpawnReady<S>[src]

impl<S: Debug> Debug for MakeSpawnReady<S>[src]

impl<S, Target> Service<Target> for MakeSpawnReady<S> where
    S: Service<Target>, 

type Response = SpawnReady<S::Response>

Responses given by the service.

type Error = S::Error

Errors produced by the service.

type Future = MakeFuture<S::Future>

The future response value.

Auto Trait Implementations

impl<S> RefUnwindSafe for MakeSpawnReady<S> where
    S: RefUnwindSafe

impl<S> Send for MakeSpawnReady<S> where
    S: Send

impl<S> Sync for MakeSpawnReady<S> where
    S: Sync

impl<S> Unpin for MakeSpawnReady<S> where
    S: Unpin

impl<S> UnwindSafe for MakeSpawnReady<S> where
    S: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,