pub fn shutdown_mock_server_by_id(&mut self, id: String) -> bool {
        match self.mock_servers.remove(&id) {
            Some(mut mock_server) => {
                match mock_server.shutdown() {
                    Ok(()) => true,
                    Err(_) => false
                }
            },
            None => false
        }
    }
/// Shut down a server by its id
Shut down a server by its id
Shut down a server by its id
pub fn shutdown_mock_server_by_id(&mut self, id: String) -> bool {
        match self.mock_servers.remove(&id) {
            Some(mut mock_server) => {
                match mock_server.shutdown() {
                    Ok(()) => true,
                    Err(_) => false
                }
            },
            None => false
        }
    }
pub fn shutdown_mock_server_by_id ( & mut self , id : String ) -> bool { match self . mock_servers . remove ( & id ) { Some ( mut mock_server ) => { match mock_server . shutdown ( ) { Ok ( ( ) ) => true , Err ( _ ) => false } } , None => false } }
Shut down a server by its id
Shut down a server by its id
&mut self
id
String
&mut self
id
String