Skip to main content

pair

Function pair 

Source
pub fn pair<T, U>() -> (Mock<T, U>, Handle<T, U>)
Expand description

Create a Mock Service paired with its Handle.

By default the mock accepts any number of requests (its poll_ready is always ready); use Handle::allow to apply backpressure.