pub struct HostToReplyConnector {
pub m: HashMap<String, String>,
}Expand description
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§
Source§impl Clone for HostToReplyConnector
impl Clone for HostToReplyConnector
Source§fn clone(&self) -> HostToReplyConnector
fn clone(&self) -> HostToReplyConnector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for HostToReplyConnector
impl Default for HostToReplyConnector
Source§fn default() -> HostToReplyConnector
fn default() -> HostToReplyConnector
Returns the “default value” for a type. Read more
Source§impl Service<Uri> for HostToReplyConnector
impl Service<Uri> for HostToReplyConnector
Source§type Response = MockPollStream
type Response = MockPollStream
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<HostToReplyConnector as Service<Uri>>::Response, <HostToReplyConnector as Service<Uri>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<HostToReplyConnector as Service<Uri>>::Response, <HostToReplyConnector as Service<Uri>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for HostToReplyConnector
impl RefUnwindSafe for HostToReplyConnector
impl Send for HostToReplyConnector
impl Sync for HostToReplyConnector
impl Unpin for HostToReplyConnector
impl UnwindSafe for HostToReplyConnector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more