Struct yup_hyper_mock::MockConnector [] [src]

pub struct MockConnector;

A NetworkConnector which creates MockStream instances exclusively. It may be useful to intercept writes.

Trait Implementations

impl NetworkConnector for MockConnector

type Stream = MockStream

fn connect(&self, _host: &str, _port: u16, _scheme: &str) -> Result<MockStream>