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

pub struct SpawnReady<T> { /* 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.

Implementations

impl<T> SpawnReady<T>[src]

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

Creates a new SpawnReady wrapping service.

Trait Implementations

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

impl<T, Request> Service<Request> for SpawnReady<T> where
    T: Service<Request> + Send + 'static,
    T::Error: Into<BoxError>,
    Request: Send + 'static, 
[src]

type Response = T::Response

Responses given by the service.

type Error = BoxError

Errors produced by the service.

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

The future response value.

Auto Trait Implementations

impl<T> !RefUnwindSafe for SpawnReady<T>[src]

impl<T> Send for SpawnReady<T> where
    T: Send
[src]

impl<T> Sync for SpawnReady<T> where
    T: Send + Sync
[src]

impl<T> Unpin for SpawnReady<T> where
    T: Unpin
[src]

impl<T> !UnwindSafe for SpawnReady<T>[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, 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>,