pub struct TestServerBuilder<Cfg, F, Sf, I> { /* private fields */ }Expand description
Test server builder
Implementations§
Source§impl<F, S, I> TestServerBuilder<NoConfig, F, S, I>
impl<F, S, I> TestServerBuilder<NoConfig, F, S, I>
Source§impl<Cfg, F, S, I> TestServerBuilder<Cfg, F, S, I>where
F: AsyncFn() -> I + Send + Clone + 'static,
I: IntoService<S, Cfg::State, Io> + 'static,
S: Service<Cfg::State, Io> + 'static,
Cfg: ServerAppConfig + 'static,
impl<Cfg, F, S, I> TestServerBuilder<Cfg, F, S, I>where
F: AsyncFn() -> I + Send + Clone + 'static,
I: IntoService<S, Cfg::State, Io> + 'static,
S: Service<Cfg::State, Io> + 'static,
Cfg: ServerAppConfig + 'static,
Sourcepub fn client_config<T: Into<SharedCfg>>(self, cfg: T) -> Self
pub fn client_config<T: Into<SharedCfg>>(self, cfg: T) -> Self
Set client io configuration
Sourcepub fn start(self) -> TestServer
pub fn start(self) -> TestServer
Start test server
Trait Implementations§
Auto Trait Implementations§
impl<Cfg, F, Sf, I> !RefUnwindSafe for TestServerBuilder<Cfg, F, Sf, I>
impl<Cfg, F, Sf, I> !UnwindSafe for TestServerBuilder<Cfg, F, Sf, I>
impl<Cfg, F, Sf, I> Freeze for TestServerBuilder<Cfg, F, Sf, I>
impl<Cfg, F, Sf, I> Send for TestServerBuilder<Cfg, F, Sf, I>
impl<Cfg, F, Sf, I> Sync for TestServerBuilder<Cfg, F, Sf, I>
impl<Cfg, F, Sf, I> Unpin for TestServerBuilder<Cfg, F, Sf, I>
impl<Cfg, F, Sf, I> UnsafeUnpin for TestServerBuilder<Cfg, F, Sf, I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more