[−][src]Trait gotham::test::Server
An in memory server for testing purposes.
Required methods
fn run_future<F, R, E>(&self, future: F) -> Result<R> where
F: Send + 'static + Future<Item = R, Error = E>,
R: Send + 'static,
E: Fail,
F: Send + 'static + Future<Item = R, Error = E>,
R: Send + 'static,
E: Fail,
Runs a Future until it resolves.
fn request_expiry(&self) -> Delay
Returns a Delay that will expire when a request should.
Provided methods
fn run_request<F>(&self, f: F) -> Result<F::Item> where
F: Future + Send + 'static,
F::Error: Fail + Sized,
F::Item: Send,
F: Future + Send + 'static,
F::Error: Fail + Sized,
F::Item: 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) -> Delay
[src]
fn run_future<F, R, E>(&self, future: F) -> Result<R> where
F: Send + 'static + Future<Item = R, Error = E>,
R: Send + 'static,
E: Fail,
[src]
F: Send + 'static + Future<Item = R, Error = E>,
R: Send + 'static,
E: Fail,
impl Server for gotham::tls::test::TestServer
[src]
fn request_expiry(&self) -> Delay
[src]
fn run_future<F, R, E>(&self, future: F) -> Result<R> where
F: Send + 'static + Future<Item = R, Error = E>,
R: Send + 'static,
E: Fail,
[src]
F: Send + 'static + Future<Item = R, Error = E>,
R: Send + 'static,
E: Fail,