[−][src]Struct yup_hyper_mock::HostToReplyConnector
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 Clone for HostToReplyConnector
[src]
fn clone(&self) -> HostToReplyConnector
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for HostToReplyConnector
[src]
fn default() -> HostToReplyConnector
[src]
impl Service<Uri> for HostToReplyConnector
[src]
type Response = MockPollStream
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>
The future response value.
fn poll_ready(&mut self, _cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Uri) -> Self::Future
[src]
Auto Trait Implementations
impl RefUnwindSafe for HostToReplyConnector
impl Send for HostToReplyConnector
impl Sync for HostToReplyConnector
impl Unpin for HostToReplyConnector
impl UnwindSafe for HostToReplyConnector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Connect for S where
S: Service<Uri, Response = T> + Send + 'static,
T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
<S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
<S as Service<Uri>>::Future: Unpin,
<S as Service<Uri>>::Future: Send,
[src]
S: Service<Uri, Response = T> + Send + 'static,
T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
<S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
<S as Service<Uri>>::Future: Unpin,
<S as Service<Uri>>::Future: Send,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,