Struct actix_web::test::TestServerBuilder
[−]
[src]
pub struct TestServerBuilder<S> { /* fields omitted */ }
Methods
impl<S: 'static> TestServerBuilder<S>
[src]
pub fn new<F>(state: F) -> TestServerBuilder<S> where
F: Fn() -> S + Sync + Send + 'static,
[src]
F: Fn() -> S + Sync + Send + 'static,
pub fn start<F>(self, config: F) -> TestServer where
F: Sync + Send + 'static + Fn(&mut TestApp<S>),
[src]
F: Sync + Send + 'static + Fn(&mut TestApp<S>),
Configure test application and run test server