Trait gotham::test::Server [−][src]
An in memory server for testing purposes.
Required methods
fn run_future<F, O>(&self, future: F) -> O where
F: Future<Output = O>,
[src]
F: Future<Output = O>,
Runs a Future until it resolves.
fn request_expiry(&self) -> Sleep
[src]
Returns a Delay that will expire when a request should.
Provided methods
fn run_request<F>(&self, f: F) -> Result<F::Ok> where
F: TryFuture + Unpin + Send + 'static,
F::Ok: Send,
F::Error: Into<Error> + Send,
[src]
F: TryFuture + Unpin + Send + 'static,
F::Ok: Send,
F::Error: Into<Error> + Send,
Runs the event loop until the response future is completed.
If the future came from a different instance of Server
, the event loop will run until
the timeout is triggered.
Implementors
impl Server for gotham::plain::test::TestServer
[src]
fn request_expiry(&self) -> Sleep
[src]
fn run_future<F, O>(&self, future: F) -> O where
F: Future<Output = O>,
[src]
F: Future<Output = O>,
impl Server for gotham::tls::test::TestServer
[src]
fn request_expiry(&self) -> Sleep
[src]
fn run_future<F, O>(&self, future: F) -> O where
F: Future<Output = O>,
[src]
F: Future<Output = O>,