tower_spawn_ready/
lib.rs

1#![doc(html_root_url = "https://docs.rs/tower-spawn-ready/0.3.0")]
2#![warn(
3    missing_debug_implementations,
4    missing_docs,
5    rust_2018_idioms,
6    unreachable_pub
7)]
8#![allow(elided_lifetimes_in_paths)]
9
10//! When an underlying service is not ready, drive it to readiness on a
11//! background task.
12
13pub mod future;
14mod layer;
15mod make;
16mod service;
17
18pub use crate::layer::SpawnReadyLayer;
19pub use crate::make::{MakeFuture, MakeSpawnReady};
20pub use crate::service::SpawnReady;
21
22/// Errors produced by `SpawnReady`.
23pub(crate) type Error = Box<dyn std::error::Error + Send + Sync>;