Function spawn_layer
Source pub fn spawn_layer<T, U, L>(layer: L) -> (Spawn<L::Service>, Handle<T, U>)
Expand description
Apply a Layer to a mock Service and spawn the result on a mock task.
Returns the layered service wrapped in a Spawn, along with the Handle
for the underlying Mock.