You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: handlers.rs
    path of file: ./repos/stewardx/src/server
    
    the code of the file until where you have to start completion: use std::str::FromStr;

use super::ServerMessage;
use hyper::{body::HttpBody, Body, Request, Response};
use routerify::{ext::RequestExt};
use serde::{Deserialize
    
pub async fn abort_task(mut req: Request<Body>) -> Result<Response<Body>, anyhow::Error> {
    #[derive(Debug, Serialize, Deserialize)]
    struct RequestBody {
        task_id: Uuid,
    }
    let (tx, rx) = tokio::sync::oneshot::channel();
    let body = req.body_mut();
    if let Some(Ok(body)) = body.data().await {
        if let Ok(json_value) =
            serde_json::from_slice(&body) as Result<RequestBody, serde_json::Error>
        {
            let sender = req.data::<Sender<ServerMessage>>().unwrap();
            let task_id = json_value.task_id;
            reactor_failed!(sender
                .send(ServerMessage::AbortTask { task_id, resp: tx })
                .await, "AbortTask");
            if let Ok(result) = rx.await {
                let status;
                if result {
                    status = "success"
                } else {
                    status = "error"
                }
                return response_json!(body: &serde_json::json!({ "status": status }));
            } else {
                println!("Abort RX - server waiting failed");
                return response_json!(
                    status: hyper::StatusCode::NOT_FOUND,
                    body: &serde_json::json!({
                         "status": "error"
                     })
                );
            }
        }
    }
    empty_malformed_body!()
}