/// Spawns tasks to drive its inner service to readiness. #[derive(Clone, Debug, Default)] pub struct SpawnReadyLayer(()); impl SpawnReadyLayer { /// Builds a [`SpawnReadyLayer`]. pub fn new() -> Self { Self::default() } } impl tower_layer::Layer for SpawnReadyLayer { type Service = super::SpawnReady; fn layer(&self, service: S) -> Self::Service { super::SpawnReady::new(service) } }