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: restore.rs
    path of file: ./repos/CYFS/src/component/cyfs-backup/src/backup
    
    the code of the file until where you have to start completion: use super::uni_restore_task::*;
use cyfs_backup_lib::*;
use cyfs_base::*;

use std::sync::{Arc, Mutex};

pub struct RestoreManager {
    // all restore tasks
    tasks: Mutex<Vec<UniRestoreTask>>,
}

impl RestoreManager {
    pub fn new() -> Self {
        Self {
            tasks: Mutex::new(vec![]),
        }
    }

    fn create_uni_restore_task(&self, params: &UniRestoreParams) -> BuckyResult<UniRestoreTask> {
        let task = UniRestoreTask::new(params.id.clone());

   
    
    pub fn get_task_status(&self, id: &str) -> BuckyResult<RestoreStatus> {
        let status = {
            let tasks = self.tasks.lock().unwrap();
            let ret = tasks.iter().find(|item| item.id() == id);
            if ret.is_none() {
                let msg = format!("backup task not exists! task={}", id);
                error!("{}", msg);
                return Err(BuckyError::new(BuckyErrorCode::NotFound, msg));
            }

            ret.unwrap().status()
        };

        Ok(status)
    }