Struct yup_hyper_mock::HostToReplyConnector [−][src]
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
m: HashMap<String, String>
Trait Implementations
impl Default for HostToReplyConnector
[src]
impl Default for HostToReplyConnector
fn default() -> HostToReplyConnector
[src]
fn default() -> HostToReplyConnector
Returns the "default value" for a type. Read more
impl Clone for HostToReplyConnector
[src]
impl Clone for HostToReplyConnector
fn clone(&self) -> HostToReplyConnector
[src]
fn clone(&self) -> HostToReplyConnector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Connect for HostToReplyConnector
[src]
impl Connect for HostToReplyConnector
type Transport = MockPollStream
The connected IO Stream.
type Error = Error
An error occured when trying to connect.
type Future = Box<Future<Item = (Self::Transport, Connected), Error = Self::Error> + Send>
A Future that will resolve to the connected Transport.
fn connect(&self, dst: Destination) -> Self::Future
[src]
fn connect(&self, dst: Destination) -> Self::Future
Connect to a destination.
Auto Trait Implementations
impl Send for HostToReplyConnector
impl Send for HostToReplyConnector
impl Sync for HostToReplyConnector
impl Sync for HostToReplyConnector