pub trait IntoTestServerThread {
    // Required method
    fn into_server_thread(
        self,
        server_builder: Builder<AddrIncoming>
    ) -> JoinHandle<()>;
}
Expand description

This exists to gloss over the differences between Axum’s IntoMakeService and IntoMakeServiceWithConnectInfo types.

This is a trait for turning those types into a thread, that is running a web server.

Required Methods§

source

fn into_server_thread( self, server_builder: Builder<AddrIncoming> ) -> JoinHandle<()>

Implementations on Foreign Types§

source§

impl IntoTestServerThread for IntoMakeService<Router>

source§

impl<C> IntoTestServerThread for IntoMakeServiceWithConnectInfo<Router, C>where for<'a> C: Connected<&'a AddrStream>,

Implementors§