Struct SpawnReady

struct SpawnReady<S> { ... }

Spawns tasks to drive an inner service to readiness.

See crate level documentation for more details.

Implementations

impl<S> SpawnReady<S>

const fn new(service: S) -> Self

Creates a new SpawnReady wrapping service.

fn layer() -> SpawnReadyLayer

Creates a layer that wraps services with SpawnReady.

impl<M, S, Target, Request> MakeService for SpawnReady<S>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future

impl<S> Drop for SpawnReady<S>

fn drop(self: &mut Self)

impl<S> Freeze for SpawnReady<S>

impl<S> RefUnwindSafe for SpawnReady<S>

impl<S> Send for SpawnReady<S>

impl<S> Sync for SpawnReady<S>

impl<S> Unpin for SpawnReady<S>

impl<S> UnsafeUnpin for SpawnReady<S>

impl<S> UnwindSafe for SpawnReady<S>

impl<S, Req> Service for SpawnReady<S>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), BoxError>>
fn call(self: &mut Self, request: Req) -> <Self as >::Future

impl<S: $crate::fmt::Debug> Debug for SpawnReady<S>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T> Any for SpawnReady<S>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SpawnReady<S>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for SpawnReady<S>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for SpawnReady<S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for SpawnReady<S>

impl<T> WithSubscriber for SpawnReady<S>

impl<T, Request> ServiceExt for SpawnReady<S>

impl<T, U> Into for SpawnReady<S>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for SpawnReady<S>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for SpawnReady<S>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>