tower_test::mock

Function spawn_layer

Source
pub fn spawn_layer<T, U, L>(layer: L) -> (Spawn<L::Service>, Handle<T, U>)
where L: Layer<Mock<T, U>>,
Expand description

Spawn a layer onto a mock service.