fn handle_stop(&self) -> Result<(String), Error> {
        // serialize the response
        let str_result =
            serde_json::to_string(&constants::StopServer { errored: false, reason: String::from("stop request.") })
                .unwrap();
        // send
        Ok(str_result)
    }
// private function : handle stop (shutdown server) cmd
private function : handle stop (shutdown server) cmd
private function : handle stop ( shutdown server ) cmd
fn handle_stop(&self) -> Result<(String), Error> {
        // serialize the response
        let str_result =
            serde_json::to_string(&constants::StopServer { errored: false, reason: String::from("stop request.") })
                .unwrap();
        // send
        Ok(str_result)
    }
fn handle_stop ( & self ) -> Result < ( String ) , Error > { // serialize the response let str_result = serde_json :: to_string ( & constants :: StopServer { errored : false , reason : String :: from ( " " ) } ) . unwrap ( ) ; // send Ok ( str_result ) }
private function : handle stop (shutdown server) cmd
private function : handle stop ( shutdown server ) cmd
&self
&self