Module mock

Source
Expand description

Mock Service that can be used in tests.

Re-exports§

pub use spawn::Spawn;

Modules§

error
Error types
future
Future types
spawn
Spawn mock services onto a mock task.

Structs§

Handle
Handle to the Mock.
Mock
A mock service
SendResponse
Send a response in reply to a received request.

Functions§

pair
Create a new Mock and Handle pair.
spawn
Spawn a Service onto a mock task.
spawn_layer
Spawn a layer onto a mock service.
spawn_with
Spawn a Service via the provided wrapper closure.