Struct yup_hyper_mock::HostToReplyConnector[][src]

pub struct HostToReplyConnector {
    pub m: HashMap<String, String>,
}

A Connect which provides a single reply stream per host.

The mapping is done from full host url (e.g. http://host.name.com) to the singular reply the host is supposed to make.

Fields

Trait Implementations

impl Default for HostToReplyConnector
[src]

Returns the "default value" for a type. Read more

impl Clone for HostToReplyConnector
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Connect for HostToReplyConnector
[src]

The connected IO Stream.

An error occured when trying to connect.

A Future that will resolve to the connected Transport.

Connect to a destination.

Auto Trait Implementations