fn render(&self) -> Box<Future<Item = String, Error = Error>> {
        let args = Rc::clone(&self.args);
        let tera = Rc::clone(&self.tera);

        let homu_future = ::homu::query(&self.client, &args.homu_url);
        let github_future = ::github::query(
            self.client.clone(),
            args.token.clone(),
            args.owner.clone(),
            args.repository.clone(),
        );
        Box::new(
            homu_future
                .join(github_future)
                .and_then(move |(homu, github)| {
                    let prs = parse_prs(github, homu);
                    let stats = summarize_prs(prs.values());
                    let data = RenderData { prs, stats, args };
                    let body = tera
                        .borrow()
                        .render("index.html", &data)
                        .map_err(TeraFailure::from)?;
                    Ok(body)
                }),
        )
    }
/// Renders the web page.
///
/// This method will *asynchronously* download PR information from GitHub and Homu.
Renders the web page.
This method will *asynchronously* download PR information from GitHub and Homu.
Renders the web page . This method will * asynchronously * download PR information from GitHub and Homu .
fn render(&self) -> Box<Future<Item = String, Error = Error>> {
        let args = Rc::clone(&self.args);
        let tera = Rc::clone(&self.tera);
        let homu_future = ::homu::query(&self.client, &args.homu_url);
        let github_future = ::github::query(
            self.client.clone(),
            args.token.clone(),
            args.owner.clone(),
            args.repository.clone(),
        );
        Box::new(
            homu_future
                .join(github_future)
                .and_then(move |(homu, github)| {
                    let prs = parse_prs(github, homu);
                    let stats = summarize_prs(prs.values());
                    let data = RenderData { prs, stats, args };
                    let body = tera
                        .borrow()
                        .render("index.html", &data)
                        .map_err(TeraFailure::from)?;
                    Ok(body)
                }),
        )
    }
fn render ( & self ) -> Box < Future < Item = String , Error = Error > > { let args = Rc :: clone ( & self . args ) ; let tera = Rc :: clone ( & self . tera ) ; let homu_future = :: homu :: query ( & self . client , & args . homu_url ) ; let github_future = :: github :: query ( self . client . clone ( ) , args . token . clone ( ) , args . owner . clone ( ) , args . repository . clone ( ) , ) ; Box :: new ( homu_future . join ( github_future ) . and_then ( move | ( homu , github ) | { let prs = parse_prs ( github , homu ) ; let stats = summarize_prs ( prs . values ( ) ) ; let data = RenderData { prs , stats , args } ; let body = tera . borrow ( ) . render ( " " , & data ) . map_err ( TeraFailure :: from ) ? ; Ok ( body ) } ) , ) }
Renders the web page.
Renders the web page .
&self
&self