Struct actix_web::test::TestServerBuilder [−][src]
pub struct TestServerBuilder<S> { /* fields omitted */ }An TestServer builder
This type can be used to construct an instance of TestServer through a
builder-like pattern.
Methods
impl<S: 'static> TestServerBuilder<S>[src]
impl<S: 'static> TestServerBuilder<S>pub fn new<F>(state: F) -> TestServerBuilder<S> where
F: Fn() -> S + Sync + Send + 'static, [src]
pub fn new<F>(state: F) -> TestServerBuilder<S> where
F: Fn() -> S + Sync + Send + 'static, Create a new test server
pub fn start<F>(self, config: F) -> TestServer where
F: Sync + Send + 'static + Fn(&mut TestApp<S>), [src]
pub fn start<F>(self, config: F) -> TestServer where
F: Sync + Send + 'static + Fn(&mut TestApp<S>), Configure test application and run test server
Auto Trait Implementations
impl<S> Send for TestServerBuilder<S>
impl<S> Send for TestServerBuilder<S>impl<S> Sync for TestServerBuilder<S>
impl<S> Sync for TestServerBuilder<S>