/// Stop a rebuild job in the background
Stop a rebuild job in the background
Stop a rebuild job in the background
pub async fn stop_rebuild(&self, name: &str) -> Result<(), Error> {
        match self.get_rebuild_job(name) {
            Ok(rj) => rj.as_client().stop().context(RebuildOperationError {
                job: name.to_owned(),
                name: self.name.clone(),
            }),
            // If a rebuild task is not found return ok
            // as we were just going to remove it anyway.
            Err(_) => Ok(()),
        }
    }
pub async fn stop_rebuild ( & self , name : & str ) -> Result < ( ) , Error > { match self . get_rebuild_job ( name ) { Ok ( rj ) => rj . as_client ( ) . stop ( ) . context ( RebuildOperationError { job : name . to_owned ( ) , name : self . name . clone ( ) , } ) , // If a rebuild task is not found return ok // as we were just going to remove it anyway. Err ( _ ) => Ok ( ( ) ) , } }
Stop a rebuild job in the background
Stop a rebuild job in the background
&self
name
&str