pub fn spawn<T, U>() -> (Spawn<Mock<T, U>>, Handle<T, U>)
Create a mock Service spawned on a mock task.
Service
The returned Spawn wraps a Mock so that its readiness can be polled synchronously in tests; the paired Handle is used to receive requests and send responses. See pair for the un-spawned equivalent.
Spawn
Mock
Handle
pair