Skip to main content

Module mock

Module mock 

Source
Expand description

Mock Services for use in tests.

See the crate-level documentation for an overview and an example.

Re-exports§

pub use spawn::Spawn;

Modules§

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

Structs§

Handle
Drives a paired Mock.
Mock
A mock Service.
SendResponse
Sends a response (or error) back for a single request received by a Mock.

Functions§

pair
Create a Mock Service paired with its Handle.
spawn
Create a mock Service spawned on a mock task.
spawn_layer
Apply a Layer to a mock Service and spawn the result on a mock task.
spawn_with
Create a mock Service, pass it through f, and spawn the result on a mock task.