pub async fn restart_server(self) -> Self {
        // get the underlying server, if possible
        let mut server = match Arc::try_unwrap(self.server) {
            Ok(s) => s,
            Err(_) => panic!("Can not restart server as it is shared"),
        };

        server.restart().await;
        let connections = server.wait_until_ready().await;

        Self {
            server: Arc::new(server),
            connections,
        }
    }
/// Restart test server, panic'ing if it is shared with some other
/// test
///
/// This will break all currently connected clients!
Restart test server, panic'ing if it is shared with some other
test

This will break all currently connected clients!
Restart test server panic ' ing if it is shared with some other test This will break all currently connected clients!
pub async fn restart_server(self) -> Self {
        // get the underlying server, if possible
        let mut server = match Arc::try_unwrap(self.server) {
            Ok(s) => s,
            Err(_) => panic!("Can not restart server as it is shared"),
        };
        server.restart().await;
        let connections = server.wait_until_ready().await;
        Self {
            server: Arc::new(server),
            connections,
        }
    }
pub async fn restart_server ( self ) -> Self { // get the underlying server, if possible let mut server = match Arc :: try_unwrap ( self . server ) { Ok ( s ) => s , Err ( _ ) => panic ! ( " " ) , } ; server . restart ( ) . await ; let connections = server . wait_until_ready ( ) . await ; Self { server : Arc :: new ( server ) , connections , } }
Restart test server, panic'ing if it is shared with some other
test
Restart test server panic ' ing if it is shared with some other test
self
self