[−][src]Struct http_service_mock::TestBackend
A harness for sending simulated requests to an HTTP service
Methods
impl<T: HttpService> TestBackend<T>
[src]
pub fn simulate(
&mut self,
req: Request
) -> Result<Response, <T::ResponseFuture as TryFuture>::Error>
[src]
&mut self,
req: Request
) -> Result<Response, <T::ResponseFuture as TryFuture>::Error>
Send a request to the simulated server
Trait Implementations
impl<T: Debug + HttpService> Debug for TestBackend<T> where
T::Connection: Debug,
[src]
T::Connection: Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for TestBackend<T> where
T: RefUnwindSafe,
<T as HttpService>::Connection: RefUnwindSafe,
T: RefUnwindSafe,
<T as HttpService>::Connection: RefUnwindSafe,
impl<T> Send for TestBackend<T> where
<T as HttpService>::Connection: Send,
<T as HttpService>::Connection: Send,
impl<T> Sync for TestBackend<T> where
<T as HttpService>::Connection: Sync,
<T as HttpService>::Connection: Sync,
impl<T> Unpin for TestBackend<T> where
T: Unpin,
<T as HttpService>::Connection: Unpin,
T: Unpin,
<T as HttpService>::Connection: Unpin,
impl<T> UnwindSafe for TestBackend<T> where
T: UnwindSafe,
<T as HttpService>::Connection: UnwindSafe,
T: UnwindSafe,
<T as HttpService>::Connection: UnwindSafe,
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,