Struct SpawnReady
pub struct SpawnReady<S> { /* private fields */ }
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) -> SelfCreates a new
SpawnReadywrappingservice.fn layer() -> SpawnReadyLayerCreates a layer that wraps services with
SpawnReady.
Trait Implementations
impl<S> Drop for SpawnReady<S>
fn drop(&mut self)
impl<S, Req> Service<Req> for SpawnReady<S>
where
Req: 'static,
S: Service<Req> + Send + 'static,
S::Error: Into<BoxError>,
type Response = <S as Service<Req>>::Response;type Error = Box<dyn Error + Sync + Send>;type Future = ResponseFuture<<S as Service<Req>>::Future, <S as Service<Req>>::Error>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), BoxError>>fn call(&mut self, request: Req) -> Self::Future
impl<S: Debug> Debug for SpawnReady<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result