[][src]Struct http_service_mock::TestBackend

pub struct TestBackend<T: HttpService> { /* fields omitted */ }

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]

Send a request to the simulated server

Trait Implementations

impl<T: Debug + HttpService> Debug for TestBackend<T> where
    T::Connection: Debug
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for TestBackend<T> where
    T: RefUnwindSafe,
    <T as HttpService>::Connection: RefUnwindSafe

impl<T> Send for TestBackend<T> where
    <T as HttpService>::Connection: Send

impl<T> Sync for TestBackend<T> where
    <T as HttpService>::Connection: Sync

impl<T> Unpin for TestBackend<T> where
    T: Unpin,
    <T as HttpService>::Connection: Unpin

impl<T> UnwindSafe for TestBackend<T> where
    T: UnwindSafe,
    <T as HttpService>::Connection: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.