pub fn shutdown(&mut self) -> Result<(), String> {
        match self.shutdown_tx.take() {
            Some(sender) => {
                match sender.send(()) {
                    Ok(()) => Ok(()),
                    Err(_) => Err("Problem sending shutdown signal to mock server".into())
                }
            },
            _ => Err("Mock server already shut down".into())
        }
    }
/// Send the shutdown signal to the server
Send the shutdown signal to the server
Send the shutdown signal to the server
pub fn shutdown(&mut self) -> Result<(), String> {
        match self.shutdown_tx.take() {
            Some(sender) => {
                match sender.send(()) {
                    Ok(()) => Ok(()),
                    Err(_) => Err("Problem sending shutdown signal to mock server".into())
                }
            },
            _ => Err("Mock server already shut down".into())
        }
    }
pub fn shutdown ( & mut self ) -> Result < ( ) , String > { match self . shutdown_tx . take ( ) { Some ( sender ) => { match sender . send ( ( ) ) { Ok ( ( ) ) => Ok ( ( ) ) , Err ( _ ) => Err ( " " . into ( ) ) } } , _ => Err ( " " . into ( ) ) } }
Send the shutdown signal to the server
Send the shutdown signal to the server
&mut self
&mut self