Struct tower::spawn_ready::SpawnReady[][src]

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

Spawns tasks to drive an inner service to readiness.

See crate level documentation for more details.


impl<S> SpawnReady<S>[src]

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

Creates a new SpawnReady wrapping service.

Trait Implementations

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

impl<S> Drop for SpawnReady<S>[src]

impl<S, Req> Service<Req> for SpawnReady<S> where
    Req: 'static,
    S: Service<Req> + Send + 'static,
    S::Error: Into<BoxError>, 

type Response = S::Response

Responses given by the service.

type Error = BoxError

Errors produced by the service.

type Future = ResponseFuture<S::Future, S::Error>

The future response value.

Auto Trait Implementations

impl<S> !RefUnwindSafe for SpawnReady<S>

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

impl<S> Sync for SpawnReady<S> where
    S: Send + Sync

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

impl<S> !UnwindSafe for SpawnReady<S>

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