[][src]Struct tsukuyomi_server::test::Server

pub struct Server<S, Rt = Runtime> { /* fields omitted */ }

A test server which emulates an HTTP service without using the low-level I/O.

Methods

impl<S, Bd> Server<S, Runtime> where
    S: MakeService<(), Request<Body>, Response = Response<Bd>>,
    Bd: Payload,
    S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::Future: Send + 'static,
    S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>> + Send + 'static,
    S::Service: Send + 'static, 
[src]

Create a Session associated with this server.

impl<S, Bd> Server<S, Runtime> where
    S: MakeService<(), Request<Body>, Response = Response<Bd>>,
    Bd: Payload,
    S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>, 
[src]

Create a Session associated with this server.

impl<S, Rt> Server<S, Rt> where
    S: MakeService<(), Request<Body>>, 
[src]

Creates an instance of TestServer from the specified components.

Trait Implementations

impl<S: Debug, Rt: Debug> Debug for Server<S, Rt>
[src]

Auto Trait Implementations

impl<S, Rt> Send for Server<S, Rt> where
    Rt: Send,
    S: Send

impl<S, Rt> Sync for Server<S, Rt> where
    Rt: Sync,
    S: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T