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: frontend_watcher.rs
    path of file: ./repos/MoonZoon/crates/mzoon/src/watcher
    
    the code of the file until where you have to start completion: use super::project_watcher::ProjectWatcher;
use crate::build_frontend::build_frontend;
use crate::config::Config;
use crate::BuildMode;
use anyhow::{Context, Error, Result};
use fehler::throws;
use std::sync::Arc;
use tokio::sync::{mpsc::UnboundedReceiver, watch};
use tokio::{
    spawn,
  
    
    pub async fn start(config: &Config, build_mode: BuildMode, debounce_time: Duration) -> Self {
        let (watcher, debounced_receiver) =
            ProjectWatcher::start(&config.watch.frontend, debounce_time)
                .context("Failed to start the frontend project watcher")?;

        let reload_url = Arc::new(format!(
            "{protocol}://localhost:{port}/_api/reload",
            protocol = if config.https { "https" } else { "http" },
            port = config.port
        ));

        Self {
            watcher,
            task: spawn(on_change(
                debounced_receiver,
                reload_url,
                build_mode,
                config.cache_busting,
                config.frontend_multithreading == Some(true),
            )),
        }
    }